PHP code example of sem-soft / yii2-activecollab

1. Go to this page and download the library: Download sem-soft/yii2-activecollab 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/ */

    

sem-soft / yii2-activecollab example snippets



...
  'components'  =>  [
    ...
    'ac'	=>  [
        'class' => \sem\activecollab\ActiveCollab::className(),
        'companyName'   =>	'Студия Олега Чулакова',
	      'applicationName'	=> 'CHRM',
	      'user'  =>	'[email protected]',
	      'password'	=>  'password',
	      'acUrl' =>	'url-to-ac-self-hosted'
    ],
    ...
  ],
...
 


	print_r(\Yii::$app->ac->request('projects', [], 'post'));
	print_r(\Yii::$app->ac->requestErrors);