PHPackages                             rolandsaven/bugherd-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rolandsaven/bugherd-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

rolandsaven/bugherd-bundle
==========================

This is a Symfony 2-3 bundle to interact with the Bugherd API v2

0.1.0(9y ago)05MITPHPPHP &gt;=5.5

Since Aug 2Pushed 9y ago1 watchersCompare

[ Source](https://github.com/rolandsaven/bugherd-bundle)[ Packagist](https://packagist.org/packages/rolandsaven/bugherd-bundle)[ Docs](https://github.com/rolandsaven/bugherd-bundle)[ RSS](/packages/rolandsaven-bugherd-bundle/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

BugherdBundle
=============

[](#bugherdbundle)

[![Build Status](https://camo.githubusercontent.com/5b66beaac9e52a0909149e22869192cd35e3d08fc00549ed5e871ac95734d166/68747470733a2f2f7472617669732d63692e6f72672f726f6c616e64736176656e2f627567686572642d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rolandsaven/bugherd-bundle)[![GitHub license](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://raw.githubusercontent.com/rolandsaven/bugherd-bundle/master/LICENSE)[![Packagist](https://camo.githubusercontent.com/14ba786726b41da2527de9cebc2639b2f0a33ee28bcfba1bd2d7e0756387c763/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f726f6c616e64736176656e2f627567686572642d62756e646c652e737667)](https://packagist.org/packages/rolandsaven/bugherd-bundle)

This is a Symfony 2-3 bundle to interact with the Bugherd API v2 via [php-bugherd-api](https://github.com/beleneglorion/php-bugherd-api).

Requirements
------------

[](#requirements)

- A Bugherd account
- PHP 5.5+
- Symfony 2.8+

Installation
------------

[](#installation)

Use [Composer](https://getcomposer.org) to add this bundle to your Symfony application.

Add `rolandsaven/bugherd-bundle` to your **composer.json** file:

```
{
    "require": {
        "rolandsaven/bugherd-bundle": "dev-master"
    }
}
```

Edit `AppKernel.php` by inserting the following:

```
public function registerBundles()
{
    $bundles = array(
        // ...
            new RolandSaven\BugherdBundle\BugherdBundle(),
        // ...
    );
}
```

To use the API, please generate an API key for your organization from within BugHerd, under **Settings &gt; General Settings** and add it to `config.yml`:

```
bugherd:
    api_key: your_bugherd__api_key
```

Finally, run `composer update`.

Accessing the Bugherd API
-------------------------

[](#accessing-the-bugherd-api)

In a controller you can access the Bugherd client and the API resources as follows:

```
// Get the BugHeard Api Client
$bugherd = $this->get('bugherd');

/** Projects **/
// Get all projects
$projects = $bugherd->api('project')->all();

// Get all active projects
$active_projects = $bugherd->api('project')->allActive();

// Get all projects with name/id pairs
$projects = $bugherd->api('project')->listing($forceUpdate, $reverse);

// Get all active projects with name/id pairs
$active_projects = $bugherd->api('project')->listingActive($forceUpdate, $reverse);

// Get project id given its name
$id = $bugherd->api('project')->getIdByName($name);

// Get a project
$project = $bugherd->api('project')->show($id);

// Create a project
$project = $bugherd->api('project')->create(array(
    'name'      => 'Name of the Project',
    'devurl'    => 'http://example.com/',
    'is_active' => true,
    'is_public' => false,
));

/** Users **/
// Get all users
$users = $bugherd->api('user')->all();

// Get all guests
$guests = $bugherd->api('user')->getGuests();

// Get all members
$members = $bugherd->api('user')->getMembers();

/ Tasks **/
// Get a task
$task = $bugherd->api('task')->show($projectId, $taskId);

// Create a task
$task = $bugherd->api('task')->create($projectId, array(
    'description'      => 'Some description',
    'requester_id'     => $requester_id,
    'requester_email'  => $requester_email
));

// Update a task
$task = $bugherd->api('task')->update($projectId, $taskId, array(
    'description'      => 'Some new description',
));

// Get all tasks
$tasks = $bugherd->api('task')->all($projectId, array(
    'status' => 'backlog',
    'priority' => 'critical'
));

/** Organization **/
// Get organization information
$organization = $bugherd->api('organization')->show();

/** Comments **/
// Create a comment
$comment = $bugherd->api('comment')->create($projectId, $taskId, array(
    'text'      => 'some comment',
    'user_id'     => $user_id,
    'user_email'  => $user_email
));

// Get all comments
$comments = $bugherd->api('comment')->all($projectId, $taskId);

/** Webhooks **/
// Get all webhooks
$webhooks = $bugherd->api('webhook')->all();

// Create a webhook
$webhook = $bugherd->api('webhook')->create(array(
    'target_url' => 'http://example.com/tasks/create',
    'event' => 'task_create' // this could be task_update, task_destroy, comment
));

// Delete a webhook
$bugherd->api('webhook')->remove($webhookId);
```

Contributing
------------

[](#contributing)

This library is still work in progress.PR-s are welcome both here and for the PHP SDK [php-bugherd-api](https://github.com/beleneglorion/php-bugherd-api).

Author
------

[](#author)

The library was written and maintained by [Roland Kalocsaven](https://github.com/rolandsaven)from [Onwwward](http://onwwward.com).

References
----------

[](#references)

- [PHP BugHerd API](https://github.com/beleneglorion/php-bugherd-api)
- [BugHerd API v2 Documentation](https://www.bugherd.com/api_v2)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3618d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/5774580?v=4)[Roland K](/maintainers/rolandsaven)[@rolandsaven](https://github.com/rolandsaven)

---

Top Contributors

[![rolandsaven](https://avatars.githubusercontent.com/u/5774580?v=4)](https://github.com/rolandsaven "rolandsaven (9 commits)")

---

Tags

symfonysupporthelp deskbugherdbug tracker

### Embed Badge

![Health badge](/badges/rolandsaven-bugherd-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/rolandsaven-bugherd-bundle/health.svg)](https://phpackages.com/packages/rolandsaven-bugherd-bundle)
```

###  Alternatives

[hackzilla/ticket-bundle

This Bundle provides multilingual ticketing functionality for Symfony applications.

6429.3k1](/packages/hackzilla-ticket-bundle)[maba/webpack-bundle

Bundle to Integrate Webpack to Symfony

122268.3k4](/packages/maba-webpack-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
