PHPackages                             nwogu/bagpack - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. nwogu/bagpack

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nwogu/bagpack
=============

Organize your migration files into proper directories by tables

271.4k↓21.4%3PHP

Since Nov 13Pushed 5y ago1 watchersCompare

[ Source](https://github.com/nwogu/bagpack)[ Packagist](https://packagist.org/packages/nwogu/bagpack)[ RSS](/packages/nwogu-bagpack/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Bagpack
-------

[](#bagpack)

Organize your bulky migration files into tabled directories.

Ever worked on a large laravel project with huge migration files, and it's a mess trying to figure out all the related migration files specific to a table?

That's what Bagpack does. It allows you to group your migration files into directories so you can easily find all the histories related to a particular schema table.

#### Before Bagpack

[](#before-bagpack)

[![alt text](before-bagpack.png?raw=true)](before-bagpack.png?raw=true)

#### After Bagpack

[](#after-bagpack)

[![alt text](after-bagpack.png?raw=true)](after-bagpack.png?raw=true)

Installation.
-------------

[](#installation)

Install via composer:

`composer require nwogu/bagpack`

You're all set and ready. All your migration generations will now be grouped into tabled directories.

Configurations.
---------------

[](#configurations)

You may optionally publish the config file by running:

`php artisan vendor:publish --tag bagpack`

Packaging Migration Files.
--------------------------

[](#packaging-migration-files)

To package existing migration files into tabled directories, run:

`php artisan migration:package`

You can optionally pass a `--path` flag to specify a full path to your migration directory. Defaults to database/migrations.

Roll back Packaged Migration Files.
-----------------------------------

[](#roll-back-packaged-migration-files)

To rollback packaged migration files, run:

`php artisan migration:package --rollback`

You can also pass `-r` for shorter syntax.

Disbaling Bagpack
-----------------

[](#disbaling-bagpack)

You can disable bagpack from running by setting `run` to false in your config file

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity31

Early-stage or recently created project

 Bus Factor1

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

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23232706?v=4)[Nwogu](/maintainers/nwogu)[@nwogu](https://github.com/nwogu)

---

Top Contributors

[![gabrielulsn](https://avatars.githubusercontent.com/u/63053068?v=4)](https://github.com/gabrielulsn "gabrielulsn (10 commits)")[![nwogu](https://avatars.githubusercontent.com/u/23232706?v=4)](https://github.com/nwogu "nwogu (4 commits)")

### Embed Badge

![Health badge](/badges/nwogu-bagpack/health.svg)

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

###  Alternatives

[silverstripesk/silverstripe-disqus

Disqus module for SilverStripe CMS http://silverstripe.sk/clanky/disqus/

171.0k](/packages/silverstripesk-silverstripe-disqus)

PHPackages © 2026

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