PHP code example of oleg-chulakov-studio / yii2-amocrm

1. Go to this page and download the library: Download oleg-chulakov-studio/yii2-amocrm library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

oleg-chulakov-studio / yii2-amocrm example snippets


return [
    ...
    'components' => [
        ...    
        'amo' => [
            'class'=> chulakov\yii\amocrm\Api::class,
            'subdomain' => '<your_subdomain_in_amo>',
            'login' => '<administrative_account_login>',
            'hash' => '<secret_hash>',
        ],
        ...
    ],
    ...
];

// Получить информацию о текущем аккаунте
$info = Yii::$app->amo->account->info();