sem-soft/yii2-activecollab

Yii2 component for ActiveCollab API

Installs: 98

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-components

1.0.4 2017-06-30 09:35 UTC

This package is auto-updated.

Last update: 2024-11-07 08:42:32 UTC


README

Install by composer

composer require sem-soft/yii2-activecollab

Or add this code into require section of your composer.json and then call composer update in console

"sem-soft/yii2-activecollab": "*"

Usage

In configuration file do

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

Use as simple component

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