crowdvalley / crowdentials-api-wrapper-bundle
Provides integration of the crowdvalley/crowdentials-api-wrapper library into the Symfony2 framework
Installs: 197
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.3.0
- crowdvalley/crowdentials-api-wrapper: 0.1.*
- symfony/framework-bundle: 2.5.*
This package is not auto-updated.
Last update: 2016-10-07 17:27:45 UTC
README
Provides integration of the crowdvalley/crowdentials-api-wrapper
library into
the Symfony2 framework.
Installation
Step 1: Setup through composer
First, add it to the list of dependencies inside your composer.json
:
{ "require": { "crowdvalley/crowdentials-api-wrapper-bundle": "dev-master" } }
Then simply install it with composer:
$> composer update crowdvalley/crowdentials-api-wrapper-bundle
Step 2: Enable the bundle
Enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Crowdvalley\CrowdentialsApiWrapperBundle\CrowdvalleyCrowdentialsApiWrapperBundle(), ); }
Step 3: Configure the bundle
Add the following configuration to your config.yml
file.
# app/config/config.yml crowdvalley_crowdentials_api_wrapper: # Your private api key api_key: 'your-key' # The base url base_url: 'http://sandbox.crowdentials.com/cai/api/v2'
Usage
Now you have access to the service crowdentials_api
:
/** @var \Crowdvalley\Crowdentials\Api\Accreditation\Wrapper $api */ $api = $this->getContainer()->get('crowdentials_api');
You can read more about the api wrapper here.