PHPackages                             jonmldr/grumphp-doctrine-task - 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. jonmldr/grumphp-doctrine-task

ActiveLibrary[Database &amp; ORM](/categories/database)

jonmldr/grumphp-doctrine-task
=============================

This library provides Doctrine's schema validation in Symfony projects as a GrumPHP task.

v3.0(2y ago)1396.3k—2%3[1 PRs](https://github.com/jonmldr/grumphp-doctrine-task/pulls)MITPHPPHP ^8.1CI passing

Since May 12Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/jonmldr/grumphp-doctrine-task)[ Packagist](https://packagist.org/packages/jonmldr/grumphp-doctrine-task)[ RSS](/packages/jonmldr-grumphp-doctrine-task/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

Doctrine schema validation task for GrumPHP
===========================================

[](#doctrine-schema-validation-task-for-grumphp)

[![Latest Version on Packagist](https://camo.githubusercontent.com/d6810cc2e1e51e552ac17899d943cea79e8256726c5159af9719c29a23028e0b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a6f6e6d6c64722f6772756d7068702d646f637472696e652d7461736b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jonmldr/grumphp-doctrine-task)[![MIT Licensed](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/4dc623a1b5c7e7deb36a5684c6a9fbcbee3ef73c65ef4eee1320dc7e394e1026/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a6f6e6d6c64722f6772756d7068702d646f637472696e652d7461736b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jonmldr/grumphp-doctrine-task)[![PHP Version Support](https://camo.githubusercontent.com/90986d292fc0249a8e800b97fc93fd4d16466dc18421545db8bb90cab651acdc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6a6f6e6d6c64722f6772756d7068702d646f637472696e652d7461736b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jonmldr/grumphp-doctrine-task)

This library provides Doctrine's schema validation in Symfony projects as a GrumPHP task.

> Note: this task is made for Symfony projects, it uses 'bin/console' so you don't have to configure the Doctrine CLI.

Demo
----

[](#demo)

[![demo](https://user-images.githubusercontent.com/33514542/81804148-f9261e00-9518-11ea-8e92-d04d482b45ff.gif)](https://user-images.githubusercontent.com/33514542/81804148-f9261e00-9518-11ea-8e92-d04d482b45ff.gif)

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

[](#installation)

You can install the package via composer:

```
composer require --dev jonmldr/grumphp-doctrine-task

```

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

[](#configuration)

```
# grumphp.yml
grumphp:
    tasks:
        doctrine_schema_validate:
            skip_mapping: false
            skip_sync: false
            triggered_by: ['php', 'xml', 'yml']
    extensions:
        - JonMldr\GrumPhpDoctrineTask\ExtensionLoader
```

**console\_path**

*Default: 'bin/console'*

With this parameter you can set the path of the console to be used.

**skip\_mapping**

*Default: false*

With this parameter you can skip the mapping validation check.

**skip\_sync**

*Default: false*

With this parameter you can skip checking if the mapping is in sync with the database.

**triggered\_by**

*Default: \[php, xml, yml\]*

This is a list of extensions that should trigger the Doctrine task.

Changelog
---------

[](#changelog)

### Version 3.1

[](#version-31)

- Added `docker-compose.yml` file for local development
- Allowed `phpro/grumphp` Composer plugin
- Updated Dockerfile

### Version 3.0

[](#version-30)

- Upgraded GrumPHP version to `^2.0` thanks to [@erkens](https://github.com/erkens)
- Upgraded to new `ExtensionInterface` for GrumPHP 2.x thanks to [@erkens](https://github.com/erkens)
- Changed minimum PHP version to `8.1` thanks to [@erkens](https://github.com/erkens)

### Version 2.1

[](#version-21)

- Added PHP8 support
- Added `ExtensionLoader`, see [Configuration](#Configuration). The service definition can be removed if you add the ExtensionLoader to your `grumphp.yml`
- Added the `console_path` option

### Version 2.0

[](#version-20)

- Updated to GrumPHP 1.x
- Required PHP version 7.3 or higher (required by GrumPHP 1.x)
- Task is also being executed during manual run
- Option parity with [default doctrine task](https://github.com/phpro/grumphp/blob/master/doc/tasks/doctrine_orm.md)
- Added Docker file for local development
- Removed composer.lock file

Supporters
----------

[](#supporters)

[![Stargazers repo roster for @jonmldr/grumphp-doctrine-task](https://camo.githubusercontent.com/4bc9a475e428ad94e5d0c750d068c2a58f5595b6f823cd74f55a0d0941cc2c9d/68747470733a2f2f7265706f726f737465722e636f6d2f73746172732f6a6f6e6d6c64722f6772756d7068702d646f637472696e652d7461736b)](https://github.com/jonmldr/grumphp-doctrine-task/stargazers)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

48

—

FairBetter than 95% of packages

Maintenance55

Moderate activity, may be stable

Popularity39

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 88.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 ~243 days

Recently: every ~303 days

Total

6

Last Release

983d ago

Major Versions

v0.0.2 → v1.0.02020-05-13

v1.0.0 → v2.02020-12-02

v2.1 → v3.02023-09-08

PHP version history (4 changes)v0.0.1PHP ^7.0

v2.0PHP ^7.3

v2.1PHP ^7.3|^8.0

v3.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/6a1881518c029d85de251e03cf12ac5d662c0fc578e7112da95723cb3daaf075?d=identicon)[jonmldr](/maintainers/jonmldr)

---

Top Contributors

[![jonmldr](https://avatars.githubusercontent.com/u/33514542?v=4)](https://github.com/jonmldr "jonmldr (40 commits)")[![ctrl-f5](https://avatars.githubusercontent.com/u/485346?v=4)](https://github.com/ctrl-f5 "ctrl-f5 (2 commits)")[![erkens](https://avatars.githubusercontent.com/u/10248696?v=4)](https://github.com/erkens "erkens (2 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (1 commits)")

---

Tags

doctrinedoctrine-schema-validationgrumphpgrumphp-taskphpsymfonysymfonyvalidationdoctrineschemetaskcommitgrumphp

### Embed Badge

![Health badge](/badges/jonmldr-grumphp-doctrine-task/health.svg)

```
[![Health](https://phpackages.com/badges/jonmldr-grumphp-doctrine-task/health.svg)](https://phpackages.com/packages/jonmldr-grumphp-doctrine-task)
```

###  Alternatives

[sonata-project/doctrine-orm-admin-bundle

Integrate Doctrine ORM into the SonataAdminBundle

46117.7M155](/packages/sonata-project-doctrine-orm-admin-bundle)[omines/datatables-bundle

Symfony DataTables Bundle with native Doctrine ORM, Elastica and MongoDB support

2851.4M6](/packages/omines-datatables-bundle)[ambta/doctrine-encrypt-bundle

Symfony 2 bundle which allows to encrypt data in database with some encrypt algorithm

77275.7k](/packages/ambta-doctrine-encrypt-bundle)[event4u/data-helpers

Framework-agnostic PHP library for data mapping, DTOs and utilities. Includes DataMapper, SimpleDto/LiteDto, DataAccessor/Mutator/Filter and helper classes (MathHelper, EnvHelper, etc.). Works with Laravel, Symfony/Doctrine or standalone PHP.

1421.5k](/packages/event4u-data-helpers)[prezent/doctrine-translatable-bundle

Integrate the doctrine-translatable extension in Symfony

14698.4k5](/packages/prezent-doctrine-translatable-bundle)

PHPackages © 2026

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