rest-api-with-lumen:用于流明微框架的Rest API样板

时间:2021-02-03 12:38:01
【文件属性】:
文件名称:rest-api-with-lumen:用于流明微框架的Rest API样板
文件大小:330KB
文件格式:ZIP
更新时间:2021-02-03 12:38:01
boilerplate laravel oauth2 php7 rest-api 带有Lumen 5.5的REST API 用于Lumen微框架的RESTful API样板。 功能包括: 用户资源 使用Laravel Passport的OAuth2身份验证 基于范围的授权 验证方式 API响应 分页 模型工厂播种数据库 事件处理 使用Mailable类发送邮件 支持 端点测试和单元测试 使用建立流程 入门 首先,克隆仓库: $ git clone git@github.com:hasib32/rest-api-with-lumen.git Laravel Homestead 您可以在全局或每个项目中使用Laravel Homestead进行本地开发。 遵循。 安装依赖项 $ cd rest-api-with-lumen $ composer install 配置环境 创建.env文件: $ cat .env.example > .env 如果需要,可以编辑数据库名称,数据库用户名和数据库密码。 迁移并使用虚假数据为数据库播种 首先,我们需要连接到数据库。 对于宅基地用户,使用默认宅基地用户名和密码登录: $ mysql -uhomestead -psec
【文件预览】:
rest-api-with-lumen-master
----.gitignore(91B)
----app()
--------Listeners()
--------Transformers()
--------Providers()
--------Exceptions()
--------Http()
--------Console()
--------Policies()
--------Repositories()
--------Events()
--------Mails()
--------Jobs()
--------Models()
----.env.example(533B)
----bootstrap()
--------app.php(4KB)
----resources()
--------views()
----storage()
--------oauth-public.key(812B)
--------app()
--------framework()
--------oauth-private.key(3KB)
--------logs()
----.travis.yml(251B)
----public()
--------images()
--------.htaccess(553B)
--------index.php(897B)
----composer.json(1010B)
----.env.travis(178B)
----docker-compose.yml(799B)
----composer.lock(168KB)
----phpunit.xml(1006B)
----tests()
--------ExampleTest.php(320B)
--------TestCase.php(279B)
--------Http()
--------Repositories()
--------Endpoints()
----config()
--------database.php(5KB)
--------auth.php(390B)
--------cors.php(572B)
--------mail.php(4KB)
----artisan(1KB)
----database()
--------factories()
--------migrations()
--------seeds()
----readme.md(16KB)
----routes()
--------web.php(1KB)
----develop(1KB)
----docker()
--------Dockerfile(1KB)
--------start-container(152B)
--------default(632B)
--------php-fpm.conf(5KB)
--------supervisord.conf(308B)
--------xdebug.ini(225B)

网友评论