PHPackages                             steevanb/dev-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. [Database &amp; ORM](/categories/database)
4. /
5. steevanb/dev-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

steevanb/dev-bundle
===================

Throws exception on translation not found and invalid doctrine schema.

5.0.1(7y ago)01.0k2MITPHPPHP ^7.1

Since Sep 21Pushed 7y ago1 watchersCompare

[ Source](https://github.com/steevanb/dev-bundle)[ Packagist](https://packagist.org/packages/steevanb/dev-bundle)[ RSS](/packages/steevanb-dev-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (5)Versions (17)Used By (0)

[![version](https://camo.githubusercontent.com/4f733cf7cb93faf41f181d2ca95e9241ba3f1106022db6ca623fbf0bca3c2456/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d352e302e312d677265656e2e737667)](https://github.com/steevanb/dev-bundle/tree/5.0.1)[![symfony](https://camo.githubusercontent.com/2dcf2757d7a2ae7d144c6e7d9b63bd3383509e6b70bacccb3bd8ad04d1c2541c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545372e312d626c75652e737667)](https://symfony.com/)[![symfony](https://camo.githubusercontent.com/f30ca7e8f8e5fe4be7d6ceb278cb6057a5a06b25a7dacd0314319908f858c497/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e795f6672616d65776f726b5f62756e646c652d253545342e302d626c75652e737667)](https://symfony.com/)[![Lines](https://camo.githubusercontent.com/b8ff8effbd25fabde5d0167f4cf07d88cde3aa02730612cd7ca8fc2b86ad86c4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532306c696e65732d313332362d677265656e2e737667)](https://camo.githubusercontent.com/b8ff8effbd25fabde5d0167f4cf07d88cde3aa02730612cd7ca8fc2b86ad86c4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f64652532306c696e65732d313332362d677265656e2e737667)[![Total Downloads](https://camo.githubusercontent.com/fb1e7eafde811b369f7aa84fdf743c9b5e25e0aa5233d76531e2817ec47703ff/68747470733a2f2f706f7365722e707567782e6f72672f7374656576616e622f6465762d62756e646c652f646f776e6c6f616473)](https://camo.githubusercontent.com/fb1e7eafde811b369f7aa84fdf743c9b5e25e0aa5233d76531e2817ec47703ff/68747470733a2f2f706f7365722e707567782e6f72672f7374656576616e622f6465762d62756e646c652f646f776e6c6f616473)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/eec98adbc2458605c86405629d23513ff229011dcf0ecdd563021f2519edfd27/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f7374656576616e622f6465762d62756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/steevanb/dev-bundle/?branch=master)

### dev-bundle

[](#dev-bundle)

Bundle for dev environment, to help you find missing translations, validate your Doctrine schema automatically and show what is loaded (classes, services etc).

For Symfony ^2.6 and ^3.0, see [steevan/dev-bundle ^4.1](https://github.com/steevanb/dev-bundle/tree/4.1.1).

[Changelog](changelog.md)

### Installation

[](#installation)

```
composer require steevanb/dev-bundle ^5.0.1
```

Or add it manually, and then execute *composer update steevanb/dev-bundle* :

```
# composer.json
{
    "require": {
        "steevanb/dev-bundle": "^5.0.1"
    }
}
```

Add bundle to your AppKernel :

```
# app/AppKernel.php
class AppKernel extends Kernel
{
    public function registerBundles()
    {
        if ($this->getEnvironment() == 'dev') {
            $bundles[] = new steevanb\DevBundle\DevBundle();
        }
    }
}
```

### Configuration

[](#configuration)

```
# app/config/config.yml
dev:
    # throws steevanb\DevBundle\Exception\TranslationsNotFoundException on translations not found
    translation_not_found:
        enabled: [TRUE|false]
        # allow Translator to search your translation in fallbacks, or not
        allow_fallbacks: [true|FALSE]
    # validate Doctrine schema
    validate_schema:
        enabled: [TRUE|false]
        disabled_urls:
            - /_wdt
            - /_profiler/
            - /_errors
        event: [KERNEL.REQUEST|kernel.response]
        excludes:
            - Foo\Bar\Entity
            - Foo\Bar\Entity#property
        bundles:
            # enable scan of Resources/config/doctrine dir of bundles
            enabled: [TRUE|false]
            # bundles to scan. if empty or not specified, will add all installed bundles
            bundles:
                - FooBundle
                - BarBundle
```

### Translation not found exception

[](#translation-not-found-exception)

Throws steevanb\\Exception\\TranslationsNotFoundException at *kernel.response* event when at least one translation is not found.

All translations not found throws this exception, especially when fallbacks are used.

For example, if you have a *messages.fr.yml* in your bundle, and you try to translate a string with *fr\_FR* locale, exception will be throwned. You can allow this with *translation.allow\_fallbacks* configuration.

### Validate Doctrine mapping

[](#validate-doctrine-mapping)

Same as calling *doctrine:schema:validate* on each request, with a cache to not recall it if nothing has changed.

Throws steevanb\\Exception\\InvalidMappingException when mapping informations are invalid.

Doctrine schema validation will be executed on each request (*kernel.request* or *kernel.response event*, depends on configuration), only for main request.

You can exclude entities or properties validation, by adding values in *dev.validate\_schema.excludes* configuration.

If value is a fully classified entity, all validation errors on this entity will be ignored.

If value if a fully qualifier entity, plus a property (ex : *Foo\\Bar\\Entity#property*), only validation errors on this property will be ignored.

### List loaded classes, services etc

[](#list-loaded-classes-services-etc)

Add Symfony WebProfilter panel, with informations about what is loaded : classes, traits, interfaces, services, container parameters, etc.

[![Loaded](loaded.jpg)](loaded.jpg)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 97.2% 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 ~175 days

Total

16

Last Release

2810d ago

Major Versions

1.1.5 → 2.0.02015-12-09

2.1.1 → 3.0.02016-06-17

3.0.0 → 4.0.02016-09-27

4.1.1 → 5.0.02018-08-28

PHP version history (2 changes)1.0.0PHP &gt;=5.3.3

5.0.0PHP ^7.1

### Community

Maintainers

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

---

Top Contributors

[![steevanb](https://avatars.githubusercontent.com/u/5063383?v=4)](https://github.com/steevanb "steevanb (69 commits)")[![ZeMarine](https://avatars.githubusercontent.com/u/158932?v=4)](https://github.com/ZeMarine "ZeMarine (2 commits)")

---

Tags

doctrinedoctrine2phpsymfony

### Embed Badge

![Health badge](/badges/steevanb-dev-bundle/health.svg)

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M647](/packages/sylius-sylius)[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k16.7M309](/packages/easycorp-easyadmin-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[hautelook/alice-bundle

Symfony bundle to manage fixtures with Alice and Faker.

19519.4M34](/packages/hautelook-alice-bundle)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)

PHPackages © 2026

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