Download the PHP package mylesduncanking/laravel-simple-migration without Composer

On this page you can find all versions of the php package mylesduncanking/laravel-simple-migration. 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 laravel-simple-migration

Laravel Simple Migration

📦 Installation


❓ Why Use This Package?

Laravel's migrations are powerful but can become verbose and repetitive, especially for simple table structures or frequent seed/migrate workflows.

Laravel Simple Migration helps you:

Perfect for rapid prototyping, internal tools, or any dev who loves less noise and more flow.


🚀 Getting Started

This package builds on Laravel's native migration system. If you're familiar with Laravel migrations, this will feel familiar.

To create a simple migration:

Your migration file will contain a $migration array for defining schema changes.

Format


🔁 Auto-After Functionality

To save time when adding multiple columns, this package adds them sequentially by default. This removes the need for ->after('column').

To disable this:

Then set config/simplemigration.php > auto_after to false.


⚡ Auto-Index Functionality

By default, any column ending in _id will automatically get an ->index() modifier.

Customize this behavior:

Then edit the regex rules in config/simplemigration.php > auto_index.

To exclude a specific column from auto-indexing, add noIndex in its modifiers array.


🌱 Seeder Functionality

Table creations or updates often require seeders. This package uses Laravel's migration tracking to automatically run seeders during the up() method.

This package assumes that seeders are stored under \Seeds namespace and have a class name that starts with a capital letter and ends with Seeder.

Note: Seeders only run during up() by default. To run seeders during rollback (down()), use beforeDown() or afterDown() and call runSeeder($seederName) manually.


📘 Table Naming Convention

If a table includes an id or uuid column, it is assumed to be a new table. Otherwise, the table is assumed to be updated.

To explicitly define the action, use:

Or adjust assumptions globally:

Example


🏷️ Column Key Format

Format keys as {type}:{column}.

Examples:


✅ Supported Modifiers

You can use all default Laravel column modifiers in array format:


✨ Helper Methods

beforeDown()

Hook to perform actions before the down() method runs.

afterDown()

Hook to perform actions after the down() method runs.

runSeeder($seeder)

Run a seeder manually.


✏️ Example Seeder Triggered in Migration

This will run RoleSeeder when the migration is applied.


📁 Config File

To customize assumptions and toggles:

Edit config/simplemigration.php to:


All versions of laravel-simple-migration with dependencies

PHP Build Version
Package Version
Requires php Version >=7.3
illuminate/database Version >=8.0
illuminate/support Version >=8.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 mylesduncanking/laravel-simple-migration contains the following files

Loading the files please wait ....