PHP code example of pixers / salesmanago-api-bundle
1. Go to this page and download the library: Download pixers/salesmanago-api-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
pixers / salesmanago-api-bundle example snippets
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Pixers\SalesManagoApiBundle\PixersSalesManagoApiBundle()
);
// ...
}
// ...
}
// app/Resources/config.yml:
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)
public function fooAction()
{
$this->get('salesmanago')->getContactService();
}
bash
php composer.phar