PHPackages                             rowanmulder/declarative-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. rowanmulder/declarative-schema

ActiveLibrary

rowanmulder/declarative-schema
==============================

A fork from micheljonkman/declarative-schema

00PHP

Since Jul 15Pushed 10mo agoCompare

[ Source](https://github.com/Rowan-Mulder/declarative-schema)[ Packagist](https://packagist.org/packages/rowanmulder/declarative-schema)[ RSS](/packages/rowanmulder-declarative-schema/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Declarative Schema
==================

[](#declarative-schema)

Uses doctrine/dbal to manage a declarative schema approach.

Usage
-----

[](#usage)

This package has only been tested on MySQL but might work for other databases too.

Create a `schema.config.php` file in the directory where your `vendor` folder is. Go to [examples](examples/schema.config.php) to find an example of this file.

To create a migration use:

```
php vendor/bin/schema make:schema table_name
```

The [DBAL docs](https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/schema-representation.html#column) provide documentation on how to create new columns and indexes. Some Laravel like methods have also been added for ease of use.

For an example schema file go to [examples](examples/example_schema.php).

Then you can call the following command to run the changes on the database.

```
php vendor/bin/schema migrate:schema
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance40

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity14

Early-stage or recently created project

 Bus Factor1

Top contributor holds 96.7% 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/72e1b837b8eeb6a63ed446159eaad7495bab045ba3c9a7dc9c4cfc9983b0549f?d=identicon)[Rowan-Mulder](/maintainers/Rowan-Mulder)

---

Top Contributors

[![MichelJonkman](https://avatars.githubusercontent.com/u/24224847?v=4)](https://github.com/MichelJonkman "MichelJonkman (29 commits)")[![Rowan-Mulder](https://avatars.githubusercontent.com/u/62886548?v=4)](https://github.com/Rowan-Mulder "Rowan-Mulder (1 commits)")

### Embed Badge

![Health badge](/badges/rowanmulder-declarative-schema/health.svg)

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

PHPackages © 2026

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