Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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`