PHPackages                             kosa3/migration-stub-extention - 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. kosa3/migration-stub-extention

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

kosa3/migration-stub-extention
==============================

1.0.3(6y ago)09[1 PRs](https://github.com/kosa3/migration-stub-extention/pulls)MITPHPPHP ^7.0

Since Apr 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/kosa3/migration-stub-extention)[ Packagist](https://packagist.org/packages/kosa3/migration-stub-extention)[ RSS](/packages/kosa3-migration-stub-extention/feed)WikiDiscussions master Synced 2d ago

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

kosa3/migrationStubExtention
----------------------------

[](#kosa3migrationstubextention)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

### Install

[](#install)

Require this package with composer using the following command:

```
composer require --dev kosa3/migration-stub-extention:dev-master
```

After updating composer, add the migration directory to the `resources` stubs `blank.stub` `create.stub` `update.stub`

You can customize the stub file freely.

```
public function up()
{
    Schema::create('DummyTable', function (Blueprint $table) {
        $table->bigIncrements('id');
        $table->timestamp('created_at')->nullable();
        $table->string('create_type', 32)->nullable()->default(null);
        $table->integer('create_id')->nullable()->default(null);
        $table->timestamp('updated_at')->nullable();
        $table->string('update_type', 32)->nullable()->default(null);
        $table->integer('update_id')->nullable()->default(null);
    });
}
```

After edited, make migration file by artisan command.

```
php artisan make:migration CreateUser --create users
```

```
class CreateUser extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('users', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->timestamp('created_at')->nullable();
            $table->string('create_type', 32)->nullable()->default(null);
            $table->integer('create_id')->nullable()->default(null);
            $table->timestamp('updated_at')->nullable();
            $table->string('update_type', 32)->nullable()->default(null);
            $table->integer('update_id')->nullable()->default(null);
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('users');
    }
}
```

License
-------

[](#license)

The package is open-source software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 80% 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 ~80 days

Total

4

Last Release

2400d ago

### Community

Maintainers

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

---

Top Contributors

[![kosa3](https://avatars.githubusercontent.com/u/19683276?v=4)](https://github.com/kosa3 "kosa3 (8 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

### Embed Badge

![Health badge](/badges/kosa3-migration-stub-extention/health.svg)

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

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11222.5M33](/packages/anourvalar-eloquent-serialize)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135212.4k7](/packages/statamic-rad-pack-runway)[mozex/laravel-scout-bulk-actions

Import, flush, and queue-import all your Laravel Scout searchable models at once. Auto-discovers models, runs in bulk, tracks progress.

1437.7k](/packages/mozex-laravel-scout-bulk-actions)[ramadan/easy-model

A Laravel package for enjoyably managing database queries.

111.6k](/packages/ramadan-easy-model)

PHPackages © 2026

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