kuma-guy / google-module
dev-master
2016-07-13 16:00 UTC
Requires
- php: >=5.5
- google/apiclient: ^2.0
- ray/di: ^2.3
This package is auto-updated.
Last update: 2024-11-26 18:53:44 UTC
README
google-api-php-client module for Ray.Di
Installation
Composer install
$ composer require kuma-guy/google-module
Module install
use Ray\Di\AbstractModule; use Ray\GoogleModule\GoogleModule; class AppModule extends AbstractModule { protected function configure() { $config = [ 'client_id' => 'your-client-id', 'client_secret' => 'your-client-secret' ]; $this->install(new GoogleModule($config)); } }
DI trait
- GoogleClientInject for
Google_Client