Download the PHP package zitansmail/migration-orderer without Composer

On this page you can find all versions of the php package zitansmail/migration-orderer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package migration-orderer

๐Ÿ“ฆ MigrationOrderer โ€” Dependency-Aware Laravel Migration Ordering

Laravel Package Tests PHP Version

Automatically analyze and reorder Laravel migrations based on foreign key dependencies. Prevent foreign key constraint errors by ensuring tables are created in the correct order.


๐ŸŽฏ The Problem

Ever encountered this error when running migrations?

This happens when migrations create foreign keys to tables that don't exist yet. Traditional solutions require manually renaming migration files or creating migrations in perfect chronological order.

๐Ÿ’ก The Solution

MigrationOrderer automatically:


๐Ÿš€ Features


โœ… Requirements


๐Ÿ“ฆ Installation

That's it! The package auto-registers and creates its tracking table automatically when needed. No manual migrations required.


๐Ÿ›  Usage

1. Preview Dependencies (Safe, No Changes)

Example Output:

2. Reorder Files

With confirmation bypass (CI/automation):

3. Undo Last Reorder

4. Custom Migration Paths


๐Ÿ” Supported Foreign Key Patterns

The scanner detects all modern Laravel foreign key patterns:


๐Ÿ”„ Workflow Examples

Basic Workflow

Team Development


๐Ÿšจ Error Handling

Circular Dependencies

Solution: Break the cycle by:

Missing Dependencies

The preview shows missing tables that your migrations reference but don't create:


๐Ÿงญ Command Reference


๐Ÿ”’ Safety Features


๐Ÿ›ก๏ธ Best Practices

Development Workflow

  1. Always preview first to understand dependencies
  2. Commit before reordering for easy rollback
  3. Use feature branches for complex schema changes
  4. Test migrations in staging before production

Schema Design

Team Collaboration


๐Ÿงช Testing

The package includes focused tests covering core functionality:

Essential test coverage:


๐Ÿค Contributing

We welcome contributions! Here's how you can help improve MigrationOrderer:

Quick Start

Contributing Guidelines

๐Ÿ› Reporting Bugs

โœจ Suggesting Features

๐Ÿ”ง Code Contributions

  1. Fork the repository
  2. Create a feature branch: git checkout -b feature/your-feature
  3. Write tests for new functionality
  4. Ensure all tests pass: composer test
  5. Follow PSR-12 coding standards
  6. Submit a pull request with clear description

๐Ÿ“ Documentation

Development Guidelines


๐Ÿ“ License

MIT License. See LICENSE for details.


๐Ÿ“š Learn More

๐Ÿ“– Technical Deep Dive Read the complete story behind MigrationOrderer's development: Solving Laravel Migration Dependency Hell: Building MigrationOrderer Package

The blog post covers:


๐Ÿ™ Credits

Created by Zitane Smail

Built with โค๏ธ for the Laravel community.


All versions of migration-orderer with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/database Version ^10.0 || ^11.0 || ^12.0
illuminate/console Version ^10.0 || ^11.0 || ^12.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package zitansmail/migration-orderer contains the following files

Loading the files please wait ...