magicalella / yii2-magorest
MAGO component for Yii 2 framework
Package info
github.com/magicalella/yii2-magorest
Type:yii2-extension
pkg:composer/magicalella/yii2-magorest
dev-master
2024-12-12 12:20 UTC
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: 2026-03-12 15:23:43 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)
);