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

dev-master 2024-12-12 12:20 UTC

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

  1. Add component to your config file
'components' => [
    // ...
    'magorest' => [
        'class' => 'magicalella\magorest\Magorest',
        'user' => 'xxxxxx',
        'password' => 'xxxxxx',
        'endpoint' => 'xxxxxx'
    ],
]
  1. Add new contact to MAGO
$magorest = Yii::$app->magorest;
$result = $magorest->post('getdata/set-customers',$data)
);