PHPackages                             sinevia/php-library-migrate - 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. sinevia/php-library-migrate

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

sinevia/php-library-migrate
===========================

PHP Library Migrate

v1.4.0(6y ago)040412proprietaryPHP

Since Sep 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/Sinevia/php-library-migrate)[ Packagist](https://packagist.org/packages/sinevia/php-library-migrate)[ Docs](http://github.com/sinevia/php-library-migrate)[ RSS](/packages/sinevia-php-library-migrate/feed)WikiDiscussions master Synced yesterday

READMEChangelog (6)DependenciesVersions (7)Used By (2)

PHP Library Migrate
===================

[](#php-library-migrate)

How to Use
----------

[](#how-to-use)

1. Create a migration directory to hold your migration files
2. Create the migration files with the following format YYYYMMDD\_SEQNCE\_ClassName (i.e. 20180905\_000001\_CreateSettingsTable).

```
class CreateSettingsTable {
    /**
     * Run the migrations.
     *
     * @return void
     */
    function up() {
        // YOUR CODE HERE
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    function down() {
        // YOUR CODE HERE
    }
}

```

3. Create a migrate.php file at a location of your preference (this example uses "app/migrate.php"). The migrations will be sorted alphabetically in ascending order and run

```
require_once dirname(__DIR__) . '/vendor/autoload.php';

db()->debug = true; // if you want to trace what is going on

Sinevia\Migrate::setDirectoryMigration(__DIR__.'/Migrations');
Sinevia\Migrate::setDatabase(db());
Sinevia\Migrate::up();

```

Run the migrations:

```
php app/migrate.php

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

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

###  Release Activity

Cadence

Every ~98 days

Total

6

Last Release

2313d ago

Major Versions

v0.2.0 → v1.0.02018-12-26

### Community

Maintainers

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

---

Top Contributors

[![Sinevia](https://avatars.githubusercontent.com/u/3450815?v=4)](https://github.com/Sinevia "Sinevia (20 commits)")[![lesichkovm](https://avatars.githubusercontent.com/u/7744963?v=4)](https://github.com/lesichkovm "lesichkovm (1 commits)")

---

Tags

phplibrarymigratesinevia

### Embed Badge

![Health badge](/badges/sinevia-php-library-migrate/health.svg)

```
[![Health](https://phpackages.com/badges/sinevia-php-library-migrate/health.svg)](https://phpackages.com/packages/sinevia-php-library-migrate)
```

###  Alternatives

[adodb/adodb-php

ADOdb is a PHP database abstraction layer library

4553.9M28](/packages/adodb-adodb-php)[stefangabos/zebra_database

An advanced, compact and lightweight MySQL database wrapper library, built around PHP's MySQLi extension.

11812.0k](/packages/stefangabos-zebra-database)[soosyze/queryflatfile

The Queryflatfile is PHP library for simple database not SQL

181.0k1](/packages/soosyze-queryflatfile)

PHPackages © 2026

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