curatorc / canned-laravel-helper
laravel 辅助函数
1.0.19
2022-11-15 01:57 UTC
Requires
- php: ^8.0.2
- barryvdh/laravel-ide-helper: ^2.12
- guzzlehttp/guzzle: ^7.4
- iidestiny/laravel-filesystem-oss: ^3.1
- kslimani/laravel-passport-grant: ^1.1
- laravel/framework: ^9.0
- laravel/passport: ^10.4
- overtrue/easy-sms: ^2.1
- overtrue/laravel-lang: ~6.0
- propaganistas/laravel-phone: ^4.3
- spatie/laravel-permission: ^5.5
Requires (Dev)
- mockery/mockery: ^1.5
- phpunit/phpunit: ^9.5
README
laravel 辅助函数.
Installing
Git 库引用(推荐)
composer require curatorc/canned-laravel-helper
本地引用
-
克隆仓库至项目目录的平级目录
在项目根目录的上一级目录运行
git clone git@github.com:CuratorC/canned-laravel-helper.git
-
添加本地库源
在项目根目录运行
composer config repositories.canned-laravel-helper path ../canned-laravel-helper
-
引用
SDK
composer require curatorc/canned-laravel-helper:dev-master
Usage
发布基础文件
php artisan vendor:publish --provider="CuratorC\CannedLaravelHelper\ServiceProvider"
Passport
- 创建生成安全访问令牌时所需的加密密钥
php artisan passport:keys
- 生成 passport 数据表
php artisan migrate
- 创建登录客户端
php artisan passport:client --password --name='example-app'
- 发布自定义 grant_type
php artisan vendor:publish --provider="Sk\Passport\GrantTypesServiceProvider" --tag="config"
Contributing
You can contribute in one of three ways:
- File bug reports using the issue tracker.
- Answer questions or fix bugs on the issue tracker.
- Contribute new features or update the wiki.
The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable.
License
MIT