https://github.com/iq2i/prestashop-webservice-bundle
Symfony bundle to wrap Prestashop official webservice client
https://github.com/iq2i/prestashop-webservice-bundle
Last synced: about 2 months ago
JSON representation
Symfony bundle to wrap Prestashop official webservice client
- Host: GitHub
- URL: https://github.com/iq2i/prestashop-webservice-bundle
- Owner: IQ2i
- License: gpl-2.0
- Created: 2015-04-10T19:32:37.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-09T15:02:51.000Z (almost 7 years ago)
- Last Synced: 2025-03-22T03:23:31.594Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 27.3 KB
- Stars: 4
- Watchers: 3
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
PrestaShop Web Service Bundle
==================================This version of the bundle requires Symfony 2.1+.
## Installation
#### Step 1: Add dependency via Composer
```composer require iq2i/prestashop-webservice-bundle```
#### Step 2: Active in app/AppKernel.php
``` php
public function registerBundles()
{
$bundles = array(
// ...
new IQ2i\PrestaShopWebServiceBundle\IQ2iPrestaShopWebServiceBundle(),
);
}
```##### Step 3: Add configuration in app/config/config.yml
``` yaml
# app/config/config.yml
iq2i_prestashop_web_service:
connections:
my_prestashop_1:
url: http://my-prestashop-1.com/
key: G5U3GCMX88EF9SFYKN82PBRYJAQQ3Z2G
debug: false
my_prestashop_2:
url: http://my-prestashop-1.com/
key: G5U3GCMX88EF9SFYKN82PBRYJAQQ3Z2G
debug: false
```## Use in your application
``` php
container->get('iq2i_prestashop_web_service')->getInstance('my_prestashop_1');
$result = $presta->get(array(
"resource" => "orders"
));
var_dump($result);
die();
}
}
```