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
Requires
- php: >=5.4.0
- activecollab/activecollab-feather-sdk: ^3.0
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); ?>