PHPackages                             ezsystems/doctrine-dbal-schema - 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. ezsystems/doctrine-dbal-schema

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

ezsystems/doctrine-dbal-schema
==============================

Abstraction layer, on top of Doctrine, for cross-DBMS schema import

v1.0.10(3y ago)30833.7k↑35.9%4[1 PRs](https://github.com/ezsystems/doctrine-dbal-schema/pulls)20GPL-2.0-onlyPHPPHP ^7.3 || ^8.0CI failing

Since Mar 6Pushed 3y ago20 watchersCompare

[ Source](https://github.com/ezsystems/doctrine-dbal-schema)[ Packagist](https://packagist.org/packages/ezsystems/doctrine-dbal-schema)[ RSS](/packages/ezsystems-doctrine-dbal-schema/feed)WikiDiscussions 1.0 Synced 3d ago

READMEChangelog (10)Dependencies (8)Versions (32)Used By (20)

Doctrine Schema Bundle
======================

[](#doctrine-schema-bundle)

This Symfony Bundle provides basic abstraction layer for cross-DBMS schema import.

It introduces custom Yaml format for schema definition and provides autowired APIs.

Schema Builder
--------------

[](#schema-builder)

Provided by APIs defined on the `\EzSystems\DoctrineSchema\API\SchemaImporter` interface, imports given Yaml source string or Yaml file into `\Doctrine\DBAL\Schema` object.

Schema Exporter
---------------

[](#schema-exporter)

Provided by APIs defined on the `\EzSystems\DoctrineSchema\API\SchemaExporter` interface, exports given `\Doctrine\DBAL\Schema` object to the custom Yaml format.

SchemaBuilder
-------------

[](#schemabuilder)

Provided by APIs defined on the `\EzSystems\DoctrineSchema\API\Builder\SchemaBuilder` interface, is an extensibility point to be used by Symfony-based projects.

The `SchemaBuilder` is event-driven. To hook into the process of building schema, a custom `EventSubscriber` is required, e.g.

```
use EzSystems\DoctrineSchema\API\Event\SchemaBuilderEvent;
use EzSystems\DoctrineSchema\API\Event\SchemaBuilderEvents;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

class BuildSchemaSubscriber implements EventSubscriberInterface
{
    /**
     * @var string
     */
    private $schemaFilePath;

    public function __construct(string $schemaFilePath)
    {
        $this->schemaFilePath = $schemaFilePath;
    }

    /**
     * Returns an array of events this subscriber wants to listen to.
     *
     * @return string[]
     */
    public static function getSubscribedEvents()
    {
        return [
            SchemaBuilderEvents::BUILD_SCHEMA => ['onBuildSchema', 200],
        ];
    }

    /**
     * @param \EzSystems\DoctrineSchema\API\Builder\SchemaBuilderEvent $event
     */
    public function onBuildSchema(SchemaBuilderEvent $event)
    {
        $event
            ->getSchemaBuilder()
            ->importSchemaFromFile($this->schemaFilePath);
    }
}
```

Schema provided in this way can be imported into Schema object by e.g.:

```
    public function __construct(SchemaBuilder $schemaBuilder)
    {
        $this->schemaBuilder = $schemaBuilder;
    }

    public function importSchema()
    {
        $schema = $this->schemaBuilder->buildSchema();
        // ...
    }
```

COPYRIGHT
---------

[](#copyright)

Copyright (C) 1999-2021 Ibexa AS (formerly eZ Systems AS). All rights reserved.

LICENSE
-------

[](#license)

This source code is available separately under the following licenses:

A - Ibexa Business Use License Agreement (Ibexa BUL), version 2.4 or later versions (as license terms may be updated from time to time) Ibexa BUL is granted by having a valid Ibexa DXP (formerly eZ Platform Enterprise) subscription, as described at: For the full Ibexa BUL license text, please see:  (latest version applies)

AND

B - GNU General Public License, version 2 Grants an copyleft open source license with ABSOLUTELY NO WARRANTY. For the full GPL license text, please see:

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity47

Moderate usage in the ecosystem

Community35

Small or concentrated contributor base

Maturity77

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~53 days

Recently: every ~103 days

Total

30

Last Release

1131d ago

Major Versions

v1.0.5 → v4.0.0-alpha22021-10-13

v0.1.6 → v1.0.72022-01-18

v0.1.7 → v1.0.82022-03-21

0.1.x-dev → v1.0.92022-04-22

v0.1.8 → 1.0.x-dev2023-05-09

PHP version history (3 changes)v0.1.0-rc1PHP ^7.1

v1.0.0-beta1PHP ^7.3

v1.0.7PHP ^7.3 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/681611?v=4)[Ibexa Bot](/maintainers/ezrobot)[@ezrobot](https://github.com/ezrobot)

![](https://avatars.githubusercontent.com/u/130489?v=4)[Łukasz Serwatka](/maintainers/lserwatka)[@lserwatka](https://github.com/lserwatka)

---

Top Contributors

[![alongosz](https://avatars.githubusercontent.com/u/7099219?v=4)](https://github.com/alongosz "alongosz (13 commits)")[![webhdx](https://avatars.githubusercontent.com/u/10212760?v=4)](https://github.com/webhdx "webhdx (5 commits)")[![mnocon](https://avatars.githubusercontent.com/u/10993858?v=4)](https://github.com/mnocon "mnocon (5 commits)")[![ibexa-yuna](https://avatars.githubusercontent.com/u/67897517?v=4)](https://github.com/ibexa-yuna "ibexa-yuna (5 commits)")[![adamwojs](https://avatars.githubusercontent.com/u/211967?v=4)](https://github.com/adamwojs "adamwojs (3 commits)")[![lserwatka](https://avatars.githubusercontent.com/u/130489?v=4)](https://github.com/lserwatka "lserwatka (3 commits)")[![Steveb-p](https://avatars.githubusercontent.com/u/3183926?v=4)](https://github.com/Steveb-p "Steveb-p (3 commits)")[![micszo](https://avatars.githubusercontent.com/u/13622502?v=4)](https://github.com/micszo "micszo (2 commits)")[![mikolajkaraczyn](https://avatars.githubusercontent.com/u/60875046?v=4)](https://github.com/mikolajkaraczyn "mikolajkaraczyn (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ezsystems-doctrine-dbal-schema/health.svg)

```
[![Health](https://phpackages.com/badges/ezsystems-doctrine-dbal-schema/health.svg)](https://phpackages.com/packages/ezsystems-doctrine-dbal-schema)
```

###  Alternatives

[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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