pixers / salesmanago-api-bundle
sales manago api client
Installs: 5 534
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 8
Forks: 1
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=5.5.0
- pixers/salesmanago-api: 1.1.2
- symfony/framework-bundle: ~2.3|~3.0
Requires (Dev)
- phpunit/phpunit: 5.4.*
This package is not auto-updated.
Last update: 2024-11-10 02:37:25 UTC
README
Integrate Sales Manago Api with Symfony.
Get it started.
Library opens easy way to integration Sales Manago with Symfony.
Installation
The preferred way to install the library is using composer.
Run:
php composer.phar require "pixers/salesmanago-api-bundle"
Symfony Integration
Symfony2 - how to add library to framework:
<?php // 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)
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
public function fooAction() { $this->get('salesmanago')->getContactService(); }
Resources
Author
- MichaĆ Kanak michal.kanak@pixers.pl
License
Copyright 2016 PIXERS Ltd - www.pixersize.com
Licensed under the BSD 3-Clause