PHPackages                             shankarbala33/php\_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. shankarbala33/php\_migration

ActiveLibrary

shankarbala33/php\_migration
============================

Collection of PHP Snippets

0.9(9y ago)27MITPHPPHP ^5.5.9|^7.0

Since Jan 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/shankarbala33/PHP_Migration)[ Packagist](https://packagist.org/packages/shankarbala33/php_migration)[ RSS](/packages/shankarbala33-php-migration/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

PHP Migration
=============

[](#php-migration)

Simple PHP package for Database Migration, with zero dependancy.

[![Packagist](https://camo.githubusercontent.com/f689fcca7146ac092ef530f68a792000cfeee8ef22b9fdba7213b76b6ef5b211/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5061636b61676973742d76302e392d626c75652e737667)](https://packagist.org/packages/shankarbala33/php_migration)[![Release](https://camo.githubusercontent.com/c93a29c6594533e648e025daff7eb222cf1fe599479edc30d89a5d7f5ca3c8d0/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f52656c656173652d76302e392d627269676874677265656e2e737667)](https://github.com/shankarThiyagaraajan/PHP_Migration/releases)[![Wordpresss](https://camo.githubusercontent.com/e34f643e777f6760bcb202c1631499cd4609a70b646dd6ba80202d3dad1e2907/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f576f726470726573732d76342e372e312532305465737465642d627269676874677265656e2e737667)](https://github.com/shankarThiyagaraajan/PHP_Migration/releases)[![License](https://camo.githubusercontent.com/08cef40a9105b6526ca22088bc514fbfdbc9aac1ddbf8d4e6c750e3a88a44dca/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c75652e737667)](https://github.com/shankarThiyagaraajan/PHP_Migration/blob/master/LICENSE)

For Wordpress Migration
-----------------------

[](#for-wordpress-migration)

```
include_once('/wordpress/migration.php');

$my_table_schema =  [
          'student_meta' => [
             'id' => [                  // Result : "id int(20) auto_increment primary key"
                 'key' => [
                     'auto_increment',
                     'primary key'
                 ],
                 'type' => 'int',
                 'limit' => 20
             ],
             'name' => [                // Result : "name varchar(255) unique key"
                 'key' => [
                     'unique key'
                 ],
                 'type' => 'varchar',
                 'limit' => 255
             ],
             'value' => [               // Result : "value longtext"
                 'key' => [],
                 'type' => 'longtext',
                 'limit' => ''
             ],
              '__table_property' => [    // For Table Properties.
                'ENGINE' => 'InnoDB'
            ]
           ]
          ];

```

For Core PHP
------------

[](#for-core-php)

```
  $my_table_schema = [
        'student' => [
            'student_id' => 'integer',
            'name' => 'string',
            'class' => 'string',
            'dob'  => 'data',
            'age' => 'integer'
        ],
        'class' => [
            'class_id' => 'integer',
            'student_id' => 'integer',
            'section' => 'string'
        ]
     ];

```

### Finally

[](#finally)

---

```
$table_schema = "YOUR_TABLE_SCHEMA" ($my_table_schema)

// Trigger Migration.
ST_DATABASE::migrate($table_schema);     // It's Generate Formatted MySQL Query and Execute.

```

It will creates the table **Student** and **Class** with given properties.

License
-------

[](#license)

[MIT License](https://github.com/shankarThiyagaraajan/PHP_Migration/blob/master/LICENSE) © Shankar Thiyagaraajan

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3405d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/310342f019559d8ee139f94cfbbcb0c83fc577c6cda3ec3373ee7ba81314f32c?d=identicon)[shankarthiyagaraajan](/maintainers/shankarthiyagaraajan)

---

Top Contributors

[![shankarThiyagaraajan](https://avatars.githubusercontent.com/u/10199091?v=4)](https://github.com/shankarThiyagaraajan "shankarThiyagaraajan (34 commits)")

---

Tags

snippetsPHP SnippetPHP SnippetsArray Function

### Embed Badge

![Health badge](/badges/shankarbala33-php-migration/health.svg)

```
[![Health](https://phpackages.com/badges/shankarbala33-php-migration/health.svg)](https://phpackages.com/packages/shankarbala33-php-migration)
```

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[mostafaznv/nova-ckeditor

CkEditor for Laravel Nova

57327.2k1](/packages/mostafaznv-nova-ckeditor)[wbrowar/guide

A CMS Guide for Craft CMS.

6154.5k1](/packages/wbrowar-guide)[permafrost-dev/code-snippets

Easily work with code snippets in PHP

14403.5k2](/packages/permafrost-dev-code-snippets)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)[bnomei/autoloader-for-kirby

Helper to automatically load various Kirby extensions in a plugin

185.7k2](/packages/bnomei-autoloader-for-kirby)

PHPackages © 2026

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