veksa / carrot-yii2

Carrot Quest API 的 Yii2 组件

v1.0.0 2016-10-06 07:07 UTC

This package is not auto-updated.

Last update: 2024-09-18 20:38:44 UTC


README

Stable Version License Total Downloads Daily Downloads

用于与 carrot-api 一起工作的 yii2 Carrot Quest API 组件。

## 安装

  1. 通过 composer 安装此扩展是首选方式。

运行以下命令:

php composer.phar require  veksa/carrot-yii2 "~1.0"

或者

"veksa/carrot-yii2": "~1.0"

将以下内容添加到你的 composer.json 文件的 require 部分。

  1. 将组件添加到 config/main.php

    'components' => [
        // ...
        'carrot' => [
            'class' => 'Veksa\Carrot\Yii2\Service',
            'appId' => 'your carrot application id',
            'token' => 'your carrot access token'
        ],
        // ...
    ],

用法

$carrot = Yii::$app->get('carrot');
$leads = $carrot->getCountLeads();

变更日志

有关最近更改的详细信息,请参阅 CHANGELOG

贡献

有关详细信息,请参阅 CONTRIBUTING

安全性

如果你发现任何与安全相关的问题,请通过电子邮件 admin@devblog.pro 联系,而不是使用问题跟踪器。

致谢

许可证

MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件