PHPackages                             obarlas/laravel-migrate-custom-command - 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. obarlas/laravel-migrate-custom-command

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

obarlas/laravel-migrate-custom-command
======================================

Creates database migration files from custom templates.

v0.1(12y ago)016PHPPHP &gt;=5.3.0

Since May 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/obarlas/laravel-migrate-custom-command)[ Packagist](https://packagist.org/packages/obarlas/laravel-migrate-custom-command)[ RSS](/packages/obarlas-laravel-migrate-custom-command/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

laravel-migrate-custom-command
==============================

[](#laravel-migrate-custom-command)

Purpose of this package is to create database migration files from custom templates since custom migration templates are not available in Laravel.

Instead of hard coding table names in the migration class, I prefer to use global variables so I can just copy/paste the same creation and foreign key strings to other migration files easily, also I have default columns on my tables so this prevents me from rewriting every database migration file.

Usage
=====

[](#usage)

- You must add the package to your app config.

```
'Obarlas\LaravelMigrateCustomCommand\LaravelMigrateCustomCommandServiceProvider',
```

- In the `src/stubs` folder of the package original stubs from the Laravel package can be found, create and copy them to your `database/templates` folder. Now you can edit the stubs according to your needs.
- Usage is simple

```
php artisan migrate:custom stub_name class_name --table=table_name

```

- `migrate:custom` command checks if there is a `{{table}}` variable in the stub file, and if no `--table` argument is passed it stops.

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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

4417d ago

### Community

Maintainers

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

---

Top Contributors

[![omerbarlas](https://avatars.githubusercontent.com/u/3511537?v=4)](https://github.com/omerbarlas "omerbarlas (10 commits)")

### Embed Badge

![Health badge](/badges/obarlas-laravel-migrate-custom-command/health.svg)

```
[![Health](https://phpackages.com/badges/obarlas-laravel-migrate-custom-command/health.svg)](https://phpackages.com/packages/obarlas-laravel-migrate-custom-command)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k54.9M11.5k](/packages/illuminate-database)[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M94](/packages/mongodb-laravel-mongodb)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[lemaur/eloquent-publishing

218.1k1](/packages/lemaur-eloquent-publishing)[laravel-liberu/laravel-gedcom

A package that converts gedcom files to Eloquent models

782.5k1](/packages/laravel-liberu-laravel-gedcom)

PHPackages © 2026

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