magicalella / yii2-magorest
MAGO component for Yii 2 framework
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
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-12 12:21:18 UTC
README
Magorest component for Yii 2 framework
Installation
The preferred way to install this extension is through composer.
Run
composer require "magicalella/yii2-magorest" "*"
or add
"magicalella/yii2-magorest": "*"
to the require section of your composer.json
file.
Usage
- Add component to your config file
'components' => [ // ... 'magorest' => [ 'class' => 'magicalella\magorest\Magorest', 'user' => 'xxxxxx', 'password' => 'xxxxxx', 'endpoint' => 'xxxxxx' ], ]
- Add new contact to MAGO
$magorest = Yii::$app->magorest; $result = $magorest->post('getdata/set-customers',$data) );