Download the PHP package smalot/magento-bundle without Composer
On this page you can find all versions of the php package smalot/magento-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download smalot/magento-bundle
More information about smalot/magento-bundle
Files in smalot/magento-bundle
Package magento-bundle
Short Description A Symfony2 wrapper for the Magento Soap Client API
License MIT
Informations about the package magento-bundle
MagentoBundle
This project is a bridge between Symfony 2 and Magento-Client API which allow to call easily the Magento Soap v1 API.
Allows :
- wrappers for each call
- dependencies injections
- event listeners
- debug toolbar integration
- and ... code completion
Requirements
- Symfony >= 2.1
- PHP >= 5.3
- smalot/magento-client
Installation
Add the following lines to your composer.json:
And run php composer.phar update smalot/magento-bundle
Then, register the bundle in your kernel:
Configuration
You need to setup at least one connection in the connections
pool and specify it with the default_connection
property.
The mandatory properties are: url
, api_user
and api_key
.
Details
Service(s) provided:
- magento
Events thrown in security context:
- \Smalot\MagentoBundle\MagentoEvents::PRE_LOGIN
- \Smalot\MagentoBundle\MagentoEvents::POST_LOGIN
- \Smalot\MagentoBundle\MagentoEvents::PRE_LOGOUT
- \Smalot\MagentoBundle\MagentoEvents::POST_LOGOUT
Events thrown in transport context:
- \Smalot\MagentoBundle\MagentoEvents::PRE_SINGLE_CALL
- \Smalot\MagentoBundle\MagentoEvents::POST_SINGLE_CALL
- \Smalot\MagentoBundle\MagentoEvents::PRE_MULTI_CALL
- \Smalot\MagentoBundle\MagentoEvents::POST_MULTI_CALL
Sample codes
Using the default
connection:
The connection can be specified manually if needed: