ev / evalandgo-client-bundle
Client API Bundle for Evalandgo
Installs: 10
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.4.0
- evalandgo/evalandgo-api-client: 2.3.*
- symfony/framework-bundle: ~2.0
README
Client API Bundle for Evalandgo.
Generally this bundle is based on EvalandgoApiClient component.
Installation
In composer.json file, add :
{ "require": { "ev/evalandgo-client-bundle": "2.2.*" } }
In app/AppKernel.php file, add :
public function registerBundles() { return array( // ... new EV\EvalandgoClientBundle\EVEvalandgoClientBundle(), // ... ); }
Examples
Configuration example
In config.yml
# Evalandgo Client ev_evalandgo_client: users: myevalandgo: { client_id: 'CLIENT_ID', client_secret: 'CLIENT_SECRET' }
Usage Example
In a Controller action
public function indexAction() { $client = $this->get('ev_evalandgo_client.myevalandgo.client'); $questionnaires = $client->resource('questionnaire')->all(); return array( 'questionnaires' => $questionnaires ); }
How to contribute
To contribute just open a Pull Request with your new code taking into account that if you add new features or modify existing ones you have to document in this README what they do.
License
EVEvalandgoClientBundle is licensed under MIT