GithubHelp home page GithubHelp logo

quick-laravel-skeleton's Introduction

本工程可以让你快速启动一个全新的API WEB服务的项目开发,quick-laravel-skeleton封装了简单的API路由逻辑,你只需要在api模块下构建正常的controller和action即可,编写方式参考ThinkPHP的模式,这种API/模块/动作的方式很容易构造URL请求,同时本框架也集成了多数据库访问支持。只要你按照规则设定好数据库访问配置和连接,同时在model中对$_conn变量进行指向,就可以轻而易举的访问不同的数据库连接了。当然本骨架也包含composer支持,可以快速集成各种第三方插件。最后要说一下,本框架推荐使用原生SQL来实现各种数据库查询,同时简单的查询我们是支持Eloquent ORM 特性的,你可以在BaseModel中看到这些封装的实现。

Notice: This Skeleton Base on Laravel 5.5 + PHP7 ,But You can Update to Laravel 5.6+PHP7.1

Step 1: composer update

Step 2: composer dumpautoload

Step 3: php artisan ide-helper:generate

Step 4: deploy redis and set redis configuration in .env

Step 5: When More MySQL Database You Have to use, You can Configure multiple Database In .env AND database.php. For example ,You can configure like current file.

Step 6: The skeleton develops implementations for the API Service,So you must be sure Your project is based on API services.

Step 7: API URL uniform /api/ prefix.

quick-laravel-skeleton's People

Contributors

leoangel avatar

Stargazers

wilbur.yu avatar yanyuxi avatar Zone avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.