PHPackages                             ludwig-br/postgres-migration - 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. ludwig-br/postgres-migration

AbandonedArchivedLibrary[Database &amp; ORM](/categories/database)

ludwig-br/postgres-migration
============================

Lightweight php migration tool for PostgreSQL databases

v1.0.1(8y ago)1241MITPHPPHP &gt;=7.1.0

Since Oct 25Pushed 8y ago1 watchersCompare

[ Source](https://github.com/LudwigBr/postgres-migration)[ Packagist](https://packagist.org/packages/ludwig-br/postgres-migration)[ RSS](/packages/ludwig-br-postgres-migration/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (0)

postgres-migration
==================

[](#postgres-migration)

Lightweight php migration tool for PostgreSQL databases.

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

To use this tool you need to have installed:

```
Php 7.1+
PostgreSQL 9.6+

```

Details: [composer.json](composer.json)

### Installing

[](#installing)

```
composer require ludwig-br/postgres-migration

```

After downloading (with composer or manually) you need to do configuration. Every part you may need to touch is marked with a "ToDo"-statement.

- copy the content of the [example/](example/) directory into your project

```
.../my_project/database/migrations/

```

- if you want to use your own config files implement the published Interfaces and delete the [config/Database.php](example/config/Database.php) and [config/Directories.php](example/config/Directories.php)
- otherwise alter the [config/Database.php](example/config/Database.php) and [config/Directories.php](example/config/Directories.php) and fill in your information
- alter the [config/includes.php](example/config/includes.php) with valid paths and class calls

After finishing the configuration you should get a security copy of you database.

```
https://www.postgresql.org/docs/current/static/backup.html

```

Finally you can generate your first migration files!

```
cd .../my_project/database/migration
php generate.php

```

The files will be placed in the directories specified in [config/Directories.php](example/config/Directories.php) for restoration or updating the database after small changes use

```
cd .../my_project/database/migration
php reload.php

```

Additional Information
----------------------

[](#additional-information)

This project is meant to offer an easy and lightweight way to integrate your (PostgreSQL) Database into your version control system. Furthermore minor changes to the database schema during developement can be applied easily. During generation your database will be altered, therefore please get a security copy before you use this tool. I advice using this tool only in a development environment.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

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

Total

2

Last Release

3161d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f9f48a74f92427e8ee7102c7a0326013adca03a105ccb85bfff7c4338c78ba96?d=identicon)[LudwigBr](/maintainers/LudwigBr)

---

Tags

migrationmigration-toolphppostgrespostgresql

### Embed Badge

![Health badge](/badges/ludwig-br-postgres-migration/health.svg)

```
[![Health](https://phpackages.com/badges/ludwig-br-postgres-migration/health.svg)](https://phpackages.com/packages/ludwig-br-postgres-migration)
```

###  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)[yemenopensource/filament-excel

This package useful for importing excel files into models.

194.2k](/packages/yemenopensource-filament-excel)

PHPackages © 2026

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