Skip to content
This repository has been archived by the owner on Nov 8, 2020. It is now read-only.

beleneglorion/php-bugherd-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Bugherd API

A simple Object Oriented wrapper for Bugherd API, written with PHP5.

Uses Bugherd API.

Features

  • Follows PSR-0 conventions and coding standard: autoload friendly
  • API entry points implementation state :
  • *OK Organizations
  • *OK Users
  • *OK Projects
  • *OK Tasks
  • *OK Comments
  • *OK Webhooks

Todo

  • Write some doc
  • handle 404

Requirements

  • PHP >= 5.3.2 with cURL extension,
  • An Account to bugherd then obtain your API access key in Settings > General Settings.

Install

Through composer, simply run :

$ php composer.phar require beleneglorion/php-bugherd-api:dev-master

Basic usage of php-bugherd-api client

<?php

// This file is generated by Composer
require_once 'vendor/autoload.php';

$client = new Bugherd\Client('API_ACCESS_KEY');

$client->api('user')->all();
$client->api('user')->listing();

$client->api('task')->create('project_id',array(
   'description'=>'Example task',
   'priority'=>'normal',
   'status'=>'backlog',
   'requester_id'=>123,
   'tag_names'=>array('ui','feature'),
   'assigned_to_id'=>123,
   'external_id'=>'ABC123'
));

Thanks!

  • Thanks to Kevin Saliou for the php-redmine-api library, great source of inspiration!

About

php implementation of the bugherd api v2

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages