2017 © Pedro Peláez
 

library zendesk-bundle

A Syfmony 2 Bundle for Dlin Zendesk client library

image

dlin/zendesk-bundle

A Syfmony 2 Bundle for Dlin Zendesk client library

  • Friday, November 29, 2013
  • by dlin-me
  • Repository
  • 1 Watchers
  • 2 Stars
  • 13,123 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 4 Forks
  • 0 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

Dlin Symfony Zendesk Bundle

Dlin Zendesk Bundle is Symfony2 wrapper bundle for the 'Dlin-Zendesk' PHP library:, (*1)

This Zendesk Bundle provides a configurable service to work with Zendesk API, (*2)

Version

0.0.1, (*3)

Installation

Installation using Composer, (*4)

Add to your composer.json:, (*5)

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

Enable the bundle in you AppKernel.php, (*6)

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

Configuration

For example:, (*7)

#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, (*8)

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

Getting the service in a ContainerAwareService, (*9)

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

Using the service, (*10)

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

Using ticket Resource Mapping Classes, (*11)

//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., (*12)

License

MIT, (*13)

Free Software, Yeah!, (*14)

The Versions

29/11 2013

dev-master

9999999-dev http://dlin.me

A Syfmony 2 Bundle for Dlin Zendesk client library

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony zendesk

27/11 2013

0.0.1

0.0.1.0 http://dlin.me

A Syfmony 2 Bundle for Dlin Zendesk client library

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony zendesk