advanced-store/oauth2-api-client
Composer 安装命令:
composer require advanced-store/oauth2-api-client
包简介
README 文档
README
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.
API Client
This package adds functionality to laravel which allows you to get user permissions through the o2client.
1. Installation
via Composer
First add the following line to your composer.json .
"advanced-store/api-client": "dev-master"
Run this command in you CLI.
composer update
This package will require the advanced-store/oauth2-client to work properly.
2. Configuration
Publish package config
Run the following command if you are installing for the first time.
php artisan config:publish advanced-store/api-client
Add following lines to your app.php.
Provider
'AdvancedStore\ApiClient\ApiClientServiceProvider',
Aliases
'YourAlias' => 'AdvancedStore\ApiClient\Facades\ApiClientFacade',,
3. Usage
Now you can get the user permissions by calling 'YourAlias'::getUserPermissions()
In combination with the advanced-store/access-filter package the access-filter config will
be filled with the user permission as default.
4. Methods
- getUserPermissions()
统计信息
- 总下载量: 76
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Creative
- 更新时间: 2015-06-09