ahmadsajid1989 / zammadapibundle
Symfony2 的 Zammad API 客户端
1.0.2
2018-03-18 07:54 UTC
Requires
- php: >=5.3.3
- zammad/zammad-api-client-php: 1.2.*
Suggests
- symfony/console: If you want to use commands to interact with the client
This package is not auto-updated.
Last update: 2024-09-29 06:02:28 UTC
README
此客户端可用于通过 Symfony 访问开源客服系统 Zammad 的 API。此应用程序只是 Zammad API 客户端 的包装
安装
步骤 1:下载 Bundle
打开命令行,进入您的项目目录,并执行以下命令以下载此 Bundle 的最新稳定版本
$ composer require ahmadsajid1989/zammadApiBundle
此命令要求您全局安装了 Composer,具体请参阅 Composer 文档的 安装章节。
要求
API 客户端需要 PHP 5.6 或更高版本。
集成到您的项目中
将以下内容添加到您的项目 composer.json 文件的 "require" 部分
"ahmadsajid1989/zammadApiBundle": "dev-master"
步骤 2:启用 Bundle
然后,通过将其添加到项目 app/AppKernel.php
文件中注册的 Bundle 列表中来启用该 Bundle
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new ahmadsajid1989\ZammadApiBundle\ZammadApiBundle(), ); // ... } // ... }
使用以下设置更新您的配置文件
app/config/config.php
zammad_api:
url: 'https:///zammad
username: 'username'
password: 'password'
debug: 'false'