spie / google-service-provider
用于 Laravel 的 Google 服务提供商。
v0.1.1
2018-08-10 12:02 UTC
Requires
- php: >7.1.3
- google/apiclient: ^2.2
- illuminate/container: ^5.6
- illuminate/support: ^5.6
Requires (Dev)
- fzaninotto/faker: ~1.4
- phpunit/phpunit: ~7.0
This package is auto-updated.
Last update: 2024-09-16 21:37:59 UTC
README
这是一个用于 Google 客户端 API 的 Laravel 和 Lumen 服务提供商。
使用方法
Laravel
将 SPie\GoogleServiceProvider\LaravelGoogleServiceProvider::class
添加到应用配置中的服务提供商数组。
Lumen
在 bootstrap/app.php
文件中注册 LumenGoogleServiceProvider
。
$app->register(SPie\GoogleServiceProvider\LumenGoogleServiceProvider);
配置
您可以复制 google.php
配置文件并更改所需的配置值。
客户端配置
对于 Google_Client 配置,您可以在 client
数组中更改值或使用 .env.example
文件中的环境变量。
服务配置
将所需的服务类名添加到 services
数组。