crowdvalley/crowdentials-api-wrapper-bundle

This package is abandoned and no longer maintained. No replacement package was suggested.

Provides integration of the crowdvalley/crowdentials-api-wrapper library into the Symfony2 framework

dev-master 2014-11-18 05:55 UTC

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.