alexeevdv / carrot-quest-yii2-client
Yii2 component for carrot-quest-php-client
Installs: 2 459
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
pkg:composer/alexeevdv/carrot-quest-yii2-client
Requires
- php: >=7.1
- alexeevdv/carrot-quest-php-client: ^0.1
- yiisoft/yii2: ^2.0
Requires (Dev)
This package is auto-updated.
Last update: 2025-10-15 00:09:01 UTC
README
Yii2 component for carrot-quest-php-client
Installation
The preferred way to install this extension is through composer.
Either run
$ php composer.phar require alexeevdv/carrot-quest-yii2-client "^0.1"
or add
"alexeevdv/carrot-quest-yii2-client": "^0.1"
to the require section of your composer.json file.
Configuration
[
    'components' => [
        'carrotQuest' => [
            'class' => alexeevdv\yii\CarrotQuest\Client::class,
            'authToken' => 'MY_AUTH_TOKEN',
        ],
    ],
]
or
[
    'container' => [
        'singletons' => [
            alexeevdv\CarrotQuest\ClientInterface::class => [
                'class' => alexeevdv\yii\CarrotQuest\Client::class,
                'authToken' => 'MY_AUTH_TOKEN',
            ],
        ],
    ],
]
Usage
Yii::$app->carrotQuest->userSetProperties(777, ['$name' => 'John'], false);
Methods
For the list of available methods see https://github.com/alexeevdv/carrot-quest-php-client