gzero / social
Zero 社交插件
v3.0.0
2017-04-30 13:30 UTC
Requires
- php: >=7.1.0
- gzero/core: ^2.0
- gzero/entity: ^2.0
- gzero/repository: ^2.0
- laravel/socialite: ^3.0
Requires (Dev)
- fzaninotto/faker: 1.6.0
- mockery/mockery: 0.9.*
- phpmd/phpmd: 2.*
- phpunit/phpunit: ~6.0
- satooshi/php-coveralls: ^1.0
- squizlabs/php_codesniffer: 2.*
This package is not auto-updated.
Last update: 2024-09-28 18:15:52 UTC
README
=== GZERO CMS 社交包
安装
首先通过 Composer 安装此包。编辑你的项目 composer.json 文件以要求 gzero/social。
"require": { "gzero/social": "3.*", }, "minimum-stability" : "stable"
接下来,从终端更新 Composer
composer update
- 创建数据库架构(记得将环境设置为 dev)
php artisan migrate
配置
将服务提供者添加到 config/app.php
中的平台配置
Gzero\Social\ServiceProvider::class
OAuth 凭据
在服务配置文件中设置给定服务的必需凭据
'google' => [ 'client_id' => 'your client_id', 'client_secret' => 'your client_secret', ], 'facebook' => [ 'client_id' => 'your client_id', 'client_secret' => 'your client_secret', ], 'twitter' => [ 'client_id' => 'your client_id', 'client_secret' => 'your client_secret', ],
点赞按钮凭据
在服务配置文件中仅设置给定服务的 client_id
'facebook' => [ 'client_id' => 'your client_id', ],