PHP library for interacting with the BugHerd API (http://www.bugherd.com/api)
-
Install the library using one of the methods below.
-
Ensure the library files are loadable from a PSR-0 compatible autoloader.
-
Initialize the API library by passing the account email address and password.
$api = new BugHerd_Api('email@address.com`, 'password');
-
Call any of the available API methods.
$api = new BugHerd_Api('email@address.com`, 'password'); $projects = $api->listProjects();
A list of available api methods can be found at http://www.bugherd.com/api
Full usage documentation can be found at https://github.com/spekkionu/bugherd/wiki/Usage
##Install from zip
- Go to https://github.com/spekkionu/bugherd
- Click the ZIP button.
- Extract to desired directory.
##Installing with Git
- Clone the repository
$ git clone git://github.com/spekkionu/bugherd.git
##Installing with Composer
-
Download the
composer.phar
executable or use the installer.$ curl -s http://getcomposer.org/installer | php
-
Create a composer.json with the following requirements
{ "require": { "bugherd/bugherd": "*" } }
-
Run Composer:
php composer.phar install
-
Copy or rename sample.config.ini as config.ini inside the tests directory.
-
Edit the tests/config.ini file to add the email address and password of the account to test with.
-
Run phpunit on tests/BugHerd_ApiTest.php
Warning This will run tests on the account. Test projects will be created to run tests on and removed as the tests complete. If a test fails the test project may fail to be deleted and must be removed maually.
BugHerd API PHP library is licensed under the New BSD License - http://www.opensource.org/licenses/bsd-license.php