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.10(10mo ago)13515GPL-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)[ RSS](/packages/se7enxweb-doctrine-dbal-schema/feed)WikiDiscussions 0.1 Synced 1mo ago

READMEChangelog (1)Dependencies (8)Versions (32)Used By (15)

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

50

—

FairBetter than 95% of packages

Maintenance72

Regular maintenance activity

Popularity10

Limited adoption so far

Community23

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

Recently: every ~352 days

Total

30

Last Release

71d ago

Major Versions

v0.1.5 → v1.0.52021-10-13

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

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://www.gravatar.com/avatar/d2a5049c5b1e7a22c301a2472d09281be35f717da316873861c1a8ae785ada7a?d=identicon)[7x](/maintainers/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

[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.4k](/packages/contao-core-bundle)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)[contao/manager-bundle

Provides the Contao Managed Edition

181.3M61](/packages/contao-manager-bundle)[netgen/layouts-core

Netgen Layouts enables you to build and manage complex web pages in a simpler way and with less coding. This is the core of Netgen Layouts, its heart and soul.

3689.4k10](/packages/netgen-layouts-core)

PHPackages © 2026

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