PHPackages                             chteuchteu/symfony-exceptions-2-gitlab-issues-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. chteuchteu/symfony-exceptions-2-gitlab-issues-bundle

ActiveLibrary

chteuchteu/symfony-exceptions-2-gitlab-issues-bundle
====================================================

Creates &amp; updates issues on a GitLab repository from Symfony2 exceptions

v1.4.1(8y ago)35782[2 issues](https://github.com/chteuchteu/SymfonyExceptions2GitLabIssuesBundle/issues)GPL-2.0-onlyPHPPHP ^5.4|^7.0

Since Jul 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/chteuchteu/SymfonyExceptions2GitLabIssuesBundle)[ Packagist](https://packagist.org/packages/chteuchteu/symfony-exceptions-2-gitlab-issues-bundle)[ Docs](https://github.com/chteuchteu/SymfonyExceptions2GitLabIssuesBundle)[ RSS](/packages/chteuchteu-symfony-exceptions-2-gitlab-issues-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (9)Dependencies (2)Versions (12)Used By (0)

SymfonyExceptions2GitLabIssuesBundle
====================================

[](#symfonyexceptions2gitlabissuesbundle)

*That's a very long name, but at least we know what it does.*

[![Latest Stable Version](https://camo.githubusercontent.com/e606382c8e5258581a9b9b104debb6184125bb3fb213ef3adb9f63add4007368/68747470733a2f2f706f7365722e707567782e6f72672f636874657563687465752f73796d666f6e792d657863657074696f6e732d322d6769746c61622d6973737565732d62756e646c652f762f737461626c65)](https://packagist.org/packages/chteuchteu/symfony-exceptions-2-gitlab-issues-bundle)

Once installed, this bundle will open/update an issue on your GitLab repository when an exception is thrown:

[![SymfonyExceptions2GitLabIssuesBundle](screenshot.png)](screenshot.png)

- We build the issue title from the exception file, line and message
- If an issue exists with this title, we'll update it
- We put some relevant information in the issue body (request method (GET, POST, ...) &amp; URI, logged in user, stacktrace)
- We add/update a comment: "Thrown 3 times, last one was 14/07/2016 09:37:47"

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

[](#installation)

1. Add this bundle to your project:

    ```
    composer require chteuchteu/symfony-exceptions-2-gitlab-issues-bundle
    ```
2. Register this bundle in symfony's kernel:

    ```
    // app/AppKernel.php
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Chteuchteu\SymExc2GtlbIsuBndle\SymfonyExceptions2GitLabIssuesBundle(),
        );
    }
    ```
3. Generate a GitLab API token. Navigate to  (replace the URL with your instance's if necessary, but don't miss the `/profile` part), then "Personal Access Tokens".

    You can name it whatever you want, but "SymfonyExceptions2GitLabIssuesBundle" seems to be a great name.

    > Note: you can share this token between several projects.
4. Configure this bundle inside your project:

    ```
    # config.yml
    sym_exc_2_gtlb_isu_bndle:
        gitlab_api_url: https://gitlab.com/api/v3/
        gitlab_token: (put your token here)
        project: your_project_name
        excluded_exceptions:
            - Symfony\Component\HttpKernel\Exception\NotFoundHttpException
    ```

    > Note: if you're using , you can actually skip the `gitlab_api_url`. If not, don't forget the /api/v3/ part.
5. Deploy your app in production, and trigger an exception. An issue should be waiting for you in your GitLab repository.
6. *(optional)* Customize the `excluded_exceptions` node to include/exclude exceptions from being handled by this bundle. By default (if the `excluded_exceptions` isn't specified), all exceptions are handled.

Configuration
-------------

[](#configuration)

Here are some more things you can configure. Just add these items to your `config.yml`, under the `sym_exc_2_gtlb_isu_bndle`node.

- `reopen_closed_issues` - boolean, default `true`:

    When set to `true`, any closed issue will be reopened when a matching exception is caught.
- `excluded_environments` - array, default `['dev', 'test']`:

    When encountering an exception in one of these environments, we won't report anything to your GitLab repository.

    > Tip: include back the dev environment (`excluded_environments: []`) to test this bundle without deploying to prod!
- `excluded_exceptions` - array, default `[]`:

    Array of FQCN (fully qualified class name) of exceptions to ignore.

    > Tip: add `Symfony\Component\HttpKernel\Exception\NotFoundHttpException` to ignore 404 exceptions.
- `mentions` - array, default `[]`:

    GitLab users to be mentioned in the issue body. Example: `['user1', 'user2', 'user3']` will append "Mentions: @user1 @user2 @user3" at the end of the message.

TODO
----

[](#todo)

- Make more things configurable:
    - Issue body template
    - Comment datetime format?
- Handle pagination when finding issue
- Test mode
- Help diagnose problems (monolog logging)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance7

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor1

Top contributor holds 87.9% 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

Every ~71 days

Recently: every ~123 days

Total

9

Last Release

3018d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ddc0a5885248f38a4e02ef4f654c8028e4e4147e606e799e608bcc23b02b0478?d=identicon)[chteuchteu](/maintainers/chteuchteu)

---

Top Contributors

[![quentin-st](https://avatars.githubusercontent.com/u/1551971?v=4)](https://github.com/quentin-st "quentin-st (29 commits)")[![MrMitch](https://avatars.githubusercontent.com/u/576772?v=4)](https://github.com/MrMitch "MrMitch (3 commits)")[![fsteinbauer](https://avatars.githubusercontent.com/u/2642316?v=4)](https://github.com/fsteinbauer "fsteinbauer (1 commits)")

---

Tags

Symfony2exceptionsgitlabissues

### Embed Badge

![Health badge](/badges/chteuchteu-symfony-exceptions-2-gitlab-issues-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/chteuchteu-symfony-exceptions-2-gitlab-issues-bundle/health.svg)](https://phpackages.com/packages/chteuchteu-symfony-exceptions-2-gitlab-issues-bundle)
```

###  Alternatives

[graham-campbell/gitlab

GitLab Is A GitLab Bridge For Laravel

141584.1k2](/packages/graham-campbell-gitlab)[evolution7/bugsnag-bundle

Bugsnag error reporting integration for Symfony2

19126.5k1](/packages/evolution7-bugsnag-bundle)[zeichen32/gitlabapibundle

Symfony Bundle to include the gitlab api.

57417.0k2](/packages/zeichen32-gitlabapibundle)[simplethings/form-extra-bundle

This bundles provides extra FormType's for Symfony2

10283.6k](/packages/simplethings-form-extra-bundle)[damianociarla/dynamic-discriminator-map-bundle

DCSDynamicDiscriminatorMapBundle simplifies the use of Doctrine Single Table Inheritance mapping strategy in Symfony2.

1237.7k](/packages/damianociarla-dynamic-discriminator-map-bundle)[symfonyid/admin-bundle

Provide Admin Generator with KISS Principle

141.6k](/packages/symfonyid-admin-bundle)

PHPackages © 2026

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