library bugherd
BugHerd API Libraries for PHP
bugherd/bugherd
BugHerd API Libraries for PHP
- Tuesday, July 30, 2013
- by spekkionu
- Repository
- 0 Watchers
- 0 Stars
- 15 Installations
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
, (*1)
BugHerd API PHP Library
PHP library for interacting with the BugHerd API (http://www.bugherd.com/api), (*2)
Usage
-
Install the library using one of the methods below., (*3)
-
Ensure the library files are loadable from a PSR-0 compatible autoloader., (*4)
-
Initialize the API library by passing the account email address and password., (*5)
php
$api = new BugHerd_Api('email@address.com`, 'password');, (*6)
-
Call any of the available API methods., (*7)
php
$api = new BugHerd_Api('email@address.com`, 'password');
$projects = $api->listProjects();, (*8)
A list of available api methods can be found at http://www.bugherd.com/api, (*9)
Full usage documentation can be found at https://github.com/spekkionu/bugherd/wiki/Usage, (*10)
Installation
Install from zip
- Go to https://github.com/spekkionu/bugherd
- Click the ZIP button.
- Extract to desired directory.
Installing with Git
- Clone the repository
sh
$ git clone git://github.com/spekkionu/bugherd.git
Installing with Composer
-
Download the composer.phar executable or use the installer., (*11)
sh
$ curl -s http://getcomposer.org/installer | php, (*12)
-
Create a composer.json with the following requirements, (*13)
json
{
"require": {
"bugherd/bugherd": "*"
}
}, (*14)
-
Run Composer: php composer.phar install, (*15)
Running Tests
-
Copy or rename sample.config.ini as config.ini inside the tests directory., (*16)
-
Edit the tests/config.ini file to add the email address and password of the account to test with., (*17)
-
Run phpunit on tests/BugHerd_ApiTest.php, (*18)
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., (*19)
License
BugHerd API PHP library is licensed under the New BSD License - http://www.opensource.org/licenses/bsd-license.php, (*20)