PHPackages                             iliev/symfony-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. iliev/symfony-schema

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

iliev/symfony-schema
====================

Symfony 2 console command for dynamic database manipulation

016PHP

Since Dec 8Pushed 12y ago1 watchersCompare

[ Source](https://github.com/imiroslavov/symfony-schema)[ Packagist](https://packagist.org/packages/iliev/symfony-schema)[ RSS](/packages/iliev-symfony-schema/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (1)Used By (0)

[![Build Status](https://camo.githubusercontent.com/a3aa57440a74d797fa03bdb2ed2a51054aace1fd10594e49b0f6a2bd99f9edbf/68747470733a2f2f7472617669732d63692e6f72672f696d69726f736c61766f762f73796d666f6e792d736368656d612e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/imiroslavov/symfony-schema)

SymfonySchemaBundle
===================

[](#symfonyschemabundle)

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

[](#installation)

### Get the bundle

[](#get-the-bundle)

Add the following lines in your composer.json:

```
{
    "require": {
        "iliev/symfony-schema": "dev-master",
    }
}
```

### Initialize the bundle

[](#initialize-the-bundle)

To start using the bundle, register the bundle in your application's kernel class:

```
// app/AppKernel.php
public function registerBundles()
{
    $bundles = array(
        // ...
        new Iliev\SymfonySchemaBundle\IlievSymfonySchemaBundle(),
    );
)
```

Configuration Reference
-----------------------

[](#configuration-reference)

Below is the full default configuration for the bundle:

```
# app/config/config.yml
iliev_symfony_schema:
    database:
        # A database connection name that is used to execute the SQL queries
        default_connection: default

        # doctrine or propel
        orm: doctrine

        # A database table name used to track the applied SQL files
        table_name: model_version

    # Path to the directory containing the sql files
    working_path: "%kernel.root_dir%/../schema/sql/updates"
```

Usage
-----

[](#usage)

Create your update scripts in the *working\_path* of this bundle. It is recommended to follow a naming convention to ensure incremental updates.

Example:

```
$ ls schema/sql/updates/ -l
total 24
-rw-r--r-- 1 user user 181 Jun  9 17:19 20130606-1.sql
-rw-r--r-- 1 user user 135 Jun  9 17:19 20130608-1.sql
-rw-r--r-- 1 user user 270 Jun  9 17:19 20130608-2.sql
-rw-r--r-- 1 user user 537 Jun  9 17:19 20130609-1.sql
-rw-r--r-- 1 user user 360 Jun  9 17:20 20130609-2.sql
-rw-r--r-- 1 user user 184 Jun  9 17:20 20130609-3.sql

```

Each file should contain a description block.

##### Multi line example:

[](#multi-line-example)

```
# schema/sql/updates/20130609-1.sql

#
#
# Multi-line
# description
# of the update
#
#

ALTER TABLE `accounts` ADD `username_normalized` VARCHAR(255) NOT NULL AFTER `username_canonical`;
```

##### Single line example:

[](#single-line-example)

```
# schema/sql/updates/20130609-2.sql

#
# --> Single line description
#

ALTER TABLE `accounts` ADD `username_normalized` VARCHAR(255) NOT NULL AFTER `username_canonical`;
```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/42bf105d963338cb417220a2b4f28520140e8bbd67e741e4f088ec20f0f1dddc?d=identicon)[i.miroslavov](/maintainers/i.miroslavov)

---

Top Contributors

[![imiroslavov](https://avatars.githubusercontent.com/u/4158675?v=4)](https://github.com/imiroslavov "imiroslavov (22 commits)")

---

Tags

phpsymfony2

### Embed Badge

![Health badge](/badges/iliev-symfony-schema/health.svg)

```
[![Health](https://phpackages.com/badges/iliev-symfony-schema/health.svg)](https://phpackages.com/packages/iliev-symfony-schema)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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