Sales Manago Api Bundle by Pixers
Integrate Sales Manago Api with Symfony., (*1)
Get it started.
Library opens easy way to integration Sales Manago with Symfony., (*2)
Installation
The preferred way to install the library is using composer., (*3)
Run:, (*4)
php composer.phar require "pixers/salesmanago-api-bundle"
Symfony Integration
Symfony2 - how to add library to framework:, (*5)
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Pixers\SalesManagoApiBundle\PixersSalesManagoApiBundle()
);
// ...
}
// ...
}
```php, (*6)
// app/Resources/config.yml:, (*7)
pixers_sales_manago_api:
client_id: salesmanago_api_client_id
endpoint: salesmanago_api_endpoint
api_secret: salesmanago_api_secret
api_key: salesmanago_api_key
owner: salesmanago_api_owner
guzzle_client: salesmanago_api_guzzle_client // Dependency Injection Service Name (optional), (*8)
## Usage
Bundle adds "salesmanago" service that is an instance of SalesManago[https://github.com/pixers/salesmanago-api/blob/master/src/Pixers/SalesManagoAPI/SalesManago.php] class.
### Example usage in controller
```php
public function fooAction()
{
$this->get('salesmanago')->getContactService();
}
Resources
Author
License
Copyright 2016 PIXERS Ltd - www.pixersize.com, (*9)
Licensed under the BSD 3-Clause, (*10)