承接 dlin/zendesk-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

dlin/zendesk-bundle

最新稳定版本:0.0.1

Composer 安装命令:

composer require dlin/zendesk-bundle

包简介

A Syfmony 2 Bundle for Dlin Zendesk client library

README 文档

README

Dlin Zendesk Bundle is Symfony2 wrapper bundle for the 'Dlin-Zendesk' PHP library:

This Zendesk Bundle provides a configurable service to work with Zendesk API

Version

0.0.1

Installation

Installation using Composer

Add to your composer.json:

json
{
    "require" :  {
        "dlin/zendesk-bundle": "dev-master"
    }
}

Enable the bundle in you AppKernel.php

public function registerBundles()
{
    $bundles = array(
    ...
    new Dlin\Bundle\ZendeskBundle\DlinZendeskBundle(),
    ...
}

Configuration

For example:

#app/config/config.yml

dlin_zendesk:
    email: account@youemail.com
    token: xxxxxxxxxxx
    url: https://subdomain.zendesk.com/api/v2/

Usage

Geting the service in a controller

$api =  $this->get('dlin.zendesk')->getApi();

Getting the service in a ContainerAwareService

$api = $this->container->get('dlin.zendesk')->getApi();

Using the service

//Get recent tickets
$response = $api->get('tickets/recent.json')->send()->json();

Using ticket Resource Mapping Classes

//Instantiate the Ticket Client
$ticketClient = new TicketClient($api);


//Query a ticket by ID
$ticket = $ticketClient->getOneById(123);

For more details, please refer to the dlin-zendesk library.

License

MIT

Free Software, Yeah!

统计信息

  • 总下载量: 20.25k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 1
  • Forks: 4
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-11-27