PHPackages                             nf/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. nf/migration

ActiveLibrary

nf/migration
============

Add migration to NF Theme

2.0.3(7y ago)1559MITPHPPHP &gt;=5.6

Since Jan 15Pushed 7y ago2 watchersCompare

[ Source](https://github.com/nf-theme/migration)[ Packagist](https://packagist.org/packages/nf/migration)[ RSS](/packages/nf-migration/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)Dependencies (2)Versions (12)Used By (0)

- [NF Migration](#nf-migration)
    - [Installation](#installation)
        - [Step 1: Install Through Composer](#step-1-install-through-composer)
        - [Step 2: Add the Service Provider](#step-2-add-the-service-provider)
        - [Step 3: Update autoload rule](#step-3-update-autoload-rule)
        - [Step 4: Publish needed files](#step-4-publish-needed-files)
        - [Step 5: Play with command](#step-5-play-with-command)
        - [Step 6: Migrate your tables](#step-6-migrate-your-tables)
        - [Rollback all migration file](#rollback-all-migration-file)

> It's an extension for our theme

NF Migration
============

[](#nf-migration)

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

[](#installation)

> Migration package can be used in plugin also, with a plugin that is created with NF Core module

To create an empty plugin that use NF Core module, move to `wp-contents/plugins`

By running following command and select correct option you can create an empty plugin

```
vcc create-project --name="your_plugin_name"

```

Copy file `uninstall.php` from `plugin/uninstall.php`. So when plugin is unistalled the tables will automatically deleted

To use nf-core module in your plugin make sure you have correct configuration in `config/app.php` with `is_plugin=true` and `plugin_file={your_main_plugin_file_name}`

### Step 1: Install Through Composer

[](#step-1-install-through-composer)

```
composer require nf/migration

```

### Step 2: Add the Service Provider

[](#step-2-add-the-service-provider)

> Open `config/app.php` and register the required service provider.

```
  'providers'  => [
        // .... Others providers
        \NF\Database\Providers\DatabaseServiceProvider::class,
    ],
```

### Step 3: Update autoload rule

[](#step-3-update-autoload-rule)

Add the following code to `autoload` section of your `composer.json`

```
    "classmap": [
        "database"
    ]
```

### Step 4: Publish needed files

[](#step-4-publish-needed-files)

By run publis command we will see a new folder called `database` in your theme root directory

```
php command migration:publish

```

### Step 5: Play with command

[](#step-5-play-with-command)

Create migration file

```
php command make:migration {file_name} --create="{table_name}"

```

Or you can create another to update existing table

```
php command make:migration {file_name} --table="{existing_table_name}"

```

Example:

```
// create test table
php command make:migration create_test_table --create=test

// update test table
php command make:migration add_more_column_to_test_table --table=test

```

### Step 6: Migrate your tables

[](#step-6-migrate-your-tables)

```
php command migrate

```

### Rollback all migration file

[](#rollback-all-migration-file)

```
php command migrate:rollback

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity65

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~61 days

Total

11

Last Release

2711d ago

Major Versions

v1.0.7 → 2.0.02018-12-03

### Community

Maintainers

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

---

Top Contributors

[![nightfury-est](https://avatars.githubusercontent.com/u/20170474?v=4)](https://github.com/nightfury-est "nightfury-est (11 commits)")[![k62bcntt](https://avatars.githubusercontent.com/u/12668807?v=4)](https://github.com/k62bcntt "k62bcntt (10 commits)")[![garungabc](https://avatars.githubusercontent.com/u/24909843?v=4)](https://github.com/garungabc "garungabc (5 commits)")[![hieu-pv](https://avatars.githubusercontent.com/u/7848185?v=4)](https://github.com/hieu-pv "hieu-pv (3 commits)")[![nguyendinhkhiem](https://avatars.githubusercontent.com/u/30714081?v=4)](https://github.com/nguyendinhkhiem "nguyendinhkhiem (3 commits)")

### Embed Badge

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

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

###  Alternatives

[symfony/framework-bundle

Provides a tight integration between Symfony components and the Symfony full-stack framework

3.6k235.4M9.7k](/packages/symfony-framework-bundle)[symfony/security-bundle

Provides a tight integration of the Security component into the Symfony full-stack framework

2.5k172.9M1.8k](/packages/symfony-security-bundle)[drupal/core

Drupal is an open source content management platform powering millions of websites and applications.

19462.3M1.3k](/packages/drupal-core)[damienharper/auditor

The missing audit log library.

1922.8M8](/packages/damienharper-auditor)[symfony/ai-platform

PHP library for interacting with AI platform provider.

51927.7k136](/packages/symfony-ai-platform)[acquia/orca

A tool for testing a company's software packages together in the context of a realistic, functioning, best practices Drupal build

32902.4k](/packages/acquia-orca)

PHPackages © 2026

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