Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kuma-guy/ray.googlemodule
Google API PHP Client module for Ray.Di
https://github.com/kuma-guy/ray.googlemodule
Last synced: 8 days ago
JSON representation
Google API PHP Client module for Ray.Di
- Host: GitHub
- URL: https://github.com/kuma-guy/ray.googlemodule
- Owner: kuma-guy
- License: mit
- Created: 2016-07-07T19:39:13.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-07-13T16:00:28.000Z (over 8 years ago)
- Last Synced: 2024-04-19T14:21:05.325Z (8 months ago)
- Language: PHP
- Homepage:
- Size: 10.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Ray.GoogleModule
[![Build Status](https://travis-ci.org/kuma-guy/Ray.GoogleModule.svg?branch=master)](https://travis-ci.org/kuma-guy/Ray.GoogleModule)
[google-api-php-client](https://github.com/google/google-api-php-client) module for Ray.Di
## Installation
### Composer install
$ composer require kuma-guy/google-module
### Module install```php
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](https://github.com/kuma-guy/Ray.GoogleModule/blob/master/src/GoogleClientInject.php) for `Google_Client`