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

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

se7enxweb/doctrine-dbal-schema
==============================

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

v1.0.11(2mo ago)24617GPL-2.0-onlyPHPPHP ^7.1 || ^8.1 || ^8.2

Since Mar 6Pushed 2mo agoCompare

[ Source](https://github.com/se7enxweb/doctrine-dbal-schema)[ Packagist](https://packagist.org/packages/se7enxweb/doctrine-dbal-schema)[ Fund](https://account.venmo.com/u/se7enxweb)[ Fund](https://cash.app/$7xweb)[ RSS](/packages/se7enxweb-doctrine-dbal-schema/feed)WikiDiscussions 0.1 Synced today

READMEChangelog (2)Dependencies (16)Versions (33)Used By (17)

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 &amp; License
-----------------------

[](#copyright--license)

Copyright (c) eZ Systems AS. For copyright and license details see provided LICENSE file.

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance84

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community25

Small or concentrated contributor base

Maturity84

Battle-tested with a long release history

 Bus Factor2

2 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 ~86 days

Recently: every ~361 days

Total

31

Last Release

83d 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

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

0.1.x-dev → v1.0.112026-04-12

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

v1.0.0-beta1PHP ^7.3

v1.0.7PHP ^7.3 || ^8.0

v1.0.10PHP ^7.1 || ^8.1 || ^8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1083669?v=4)[7x](/maintainers/7x)[@7x](https://github.com/7x)

---

Top Contributors

[![alongosz](https://avatars.githubusercontent.com/u/7099219?v=4)](https://github.com/alongosz "alongosz (8 commits)")[![ibexa-yuna](https://avatars.githubusercontent.com/u/67897517?v=4)](https://github.com/ibexa-yuna "ibexa-yuna (3 commits)")[![se7enxweb](https://avatars.githubusercontent.com/u/51429274?v=4)](https://github.com/se7enxweb "se7enxweb (2 commits)")[![Steveb-p](https://avatars.githubusercontent.com/u/3183926?v=4)](https://github.com/Steveb-p "Steveb-p (2 commits)")[![mnocon](https://avatars.githubusercontent.com/u/10993858?v=4)](https://github.com/mnocon "mnocon (2 commits)")[![mikolajkaraczyn](https://avatars.githubusercontent.com/u/60875046?v=4)](https://github.com/mikolajkaraczyn "mikolajkaraczyn (1 commits)")[![micszo](https://avatars.githubusercontent.com/u/13622502?v=4)](https://github.com/micszo "micszo (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/se7enxweb-doctrine-dbal-schema/health.svg)](https://phpackages.com/packages/se7enxweb-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)
