magicalella / yii2-prestashop
Prestashop component for Yii 2 framework
Installs: 7
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- php: >=5.4.0
- yiisoft/yii2: ~2.0.6
Requires (Dev)
- php: >=5.4.0
- yiisoft/yii2: ~2.0.6
This package is auto-updated.
Last update: 2024-12-31 00:20:12 UTC
README
Modulo per integrare la Yii con Prestashop
Prestashop Technical API Documentation
Installation
The preferred way to install this extension is through composer.
Run
composer require "magicalella/yii2-prestashop" "*"
or add
"magicalella/yii2-prestashop": "*"
to the require section of your composer.json
file.
Usage
- Add component to your config file
'components' => [ // ... 'prestashop' => [ 'class' => 'magicalella\prestashop\Prestashop', 'url' => 'URL Site prestashop', 'key' => 'API Keyu WebService PS', 'debug' => true/false, 'version' => 'version PS' ], ]
- Add new contact to Prestashop . Patch a contact by email. If contact does not exists, it is created
$prestashop = Yii::$app->prestashop; $prestashop->$url = $this->$url; $prestashop->key = $this->key; $prestashop->debug = $this->debug; try { $xml = $prestashop->get(['resource' => 'orders','limit'=> $off_set.','.$limit,'sort'=>'id_ASC']); } catch (BridgePSException $ex) { echo 'Error : '.$ex->getMessage(); }
Check Prestashop Technical API Documentation for all available options.