Download the PHP package mitsuki/mitsuki-db-migrations without Composer

On this page you can find all versions of the php package mitsuki/mitsuki-db-migrations. 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 mitsuki-db-migrations

Mitsuki Database Migrations

Mitsuki Database Migrations is a lightweight, fluent schema builder for PHP. Built as a powerful wrapper around Phinx, it allows you to define your database structure using a clean, expressive syntax inspired by Laravel's Migration system.

โœจ Features


๐Ÿš€ Installation & Setup

1. Install via Composer

2. Initialize Phinx

Ensure your phinx.php is configured to use the Mitsuki template and environment variables.


๐Ÿ›  Usage

1. Basic Table Creation

Use the Schema facade. It coordinates with the Phinx migration instance to execute your definitions.

2. ๐Ÿ”— Foreign Keys & Relationships

The foreignIdFor() method simplifies relationship management by automatically guessing column and table names.


๐Ÿ’ป Console Commands

Mitsuki leverages the Phinx CLI. Here are the essential commands for your workflow:

Create a New Migration

Generate a new migration file using the Mitsuki stub:

Run Migrations

Execute all pending migrations:

Rollback

Undo the last migration:

Check Status

See the list of migrated and pending files:


โš™๏ธ Configuration (phinx.php)

Mitsuki handles environment switching automatically based on your .env file:

Env Var Default Description
ENVIRONEMENT testing Switches between testing (SQLite) and development (MySQL).
DB_CONNECTION mysql The database driver to use in development.
DB_DATABASE mitsuki_db The name of your database or path to SQLite file.

๐Ÿง  Smart Save Logic

Mitsuki is designed to be safe. When you call save(), the library checks the database state:

  1. If the table doesn't exist: It executes a CREATE TABLE statement (with id => false to let the Blueprint manage the primary key).
  2. If the table exists: It automatically switches to ALTER TABLE to add your new columns without destroying existing data.

๐Ÿงช Testing

We take stability seriously. The library is fully covered by Pest PHP unit tests.


๐Ÿ“„ License

The Mitsuki Database Migrations library is open-sourced software licensed under the MIT license.

Developed with โค๏ธ by [Zgeniuscoders](mailto:[email protected])



All versions of mitsuki-db-migrations with dependencies

PHP Build Version
Package Version
Requires robmorgan/phinx Version ^0.16.10
vlucas/phpdotenv Version ^5.6
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 mitsuki/mitsuki-db-migrations contains the following files

Loading the files please wait ...