DaApiClientBundle is a Symfony2's bundle allowing to discuss in a simple and secure way with an API.
Add dependencies in your composer.json
file:
"require": {
...
"doctrine/doctrine-cache-bundle": "~1.0",
"da/api-client-bundle": "dev-master"
},
Install these new dependencies of your application:
$ php composer.phar update
Enable bundles in your application kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Doctrine\Bundle\DoctrineCacheBundle\DoctrineCacheBundle(),
new Da\ApiClientBundle\DaApiClientBundle(),
);
}
Install bundle dependencies:
$ php composer.phar update
To execute unit tests:
$ phpunit --coverage-text