Astina Fotolia Bundle
Symfony 2 bundle integrating the Fotolia API Kit for PHP., (*1)
https://github.com/Fotolia/Fotolia-API, (*2)
Installation
Step 1
Add astina/fotolia-bundle in your composer.json:, (*3)
{
"require": {
"astina/fotolia-bundle": "dev-master"
}
}
and install it, (*4)
``` bash
$ php composer.phar update astina/fotolia-bundle, (*5)
### Step 2: Enable the bundle
Enable the bundle in the kernel:
``` php
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Astina\Bundle\FotoliaBundle\AstinaFotoliaBundle(),
// ...
);
}
Step 3
Configure the client service:, (*6)
astina_fotolia:
api_key: your_fotolia_api_key
caching: true|false # whether to cache api requests