socialiteproviders/generators
最新稳定版本:v4.7.0
Composer 安装命令:
composer require socialiteproviders/generators
包简介
Laravel Artisan Generators for OAuth1/OAuth2 Providers
README 文档
README
Contents
About
A Laravel Package to generate OAuth1/OAuth2 Providers that are compatible with the Socialite Providers Manager.
Installation
1. Composer
composer require socialiteproviders/generators
2. Service Provider
Add the ServiceProvider to the providers array in the config/app.php.
'providers' => [ SocialiteProviders\Generators\GeneratorsServiceProvider::class, ],
Usage
Generate OAuth1 Provider
php artisan make:socialite Dropbox --spec=oauth1 --author=YourName --email=your@name.com
Generate OAuth1 Provider with URLs
php artisan make:socialite Dropbox --spec=oauth1 --author=YourName --email=your@name.com --request_token_url=http://myapp.io/oauth/request_token --authorize_url=http://myapp.io/oauth/authorize --access_token_url=http://myapp.io/oauth/access_token --user_details_url=http://myapp.io/users/me
Generate OAuth2 Provider
php artisan make:socialite Dropbox --spec=oauth2 --author=YourName --email=your@name.com
Generate OAuth2 Provider with URLs and Scope
php artisan make:socialite Dropbox --spec=oauth2 --author=YourName --email=your@name.com --scopes=basic --authorize_url=http://myapp.io/oauth/authorize --access_token_url=http://myapp.io/oauth/access_token --user_details_url=http://myapp.io/users/me
统计信息
- 总下载量: 323.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 64
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-24