Download the PHP package dconco/schema-migrator without Composer
On this page you can find all versions of the php package dconco/schema-migrator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package schema-migrator
Schema Migrator
A beautiful command-line database migration tool for any PHP project. Laravel-style migrations without the framework complexity.
Features
✨ Beautiful CLI Interface - Powered by Symfony Console with colored output and interactive commands
🚀 Global Installation - Install once, use anywhere in any PHP project
🔧 Zero Dependencies - No need to install Laravel or any framework in your projects
📁 Project-Based Config - Each project maintains its own configuration and migrations
🗄️ Multi-Database Support - MySQL, PostgreSQL, SQLite, and SQL Server
⚡ Laravel-Compatible - Uses Laravel's proven migration syntax and features
Global Installation
Install Schema Migrator globally via Composer:
Make sure your global Composer bin directory is in your PATH:
Quick Start
1. Initialize in Your Project
Navigate to your PHP project and initialize Schema Migrator:
This will:
- Create a
schema-migrator.ymlconfiguration file - Create a
database/migrationsdirectory - Prompt you for database connection details
2. Create Your First Migration
3. Edit the Migration
Edit the generated file in database/migrations/:
4. Run Migrations
Commands
Initialize Project
Creates configuration and migrations directory in current project.
Create Migration
Creates a new migration file with timestamp.
Run Migrations
Executes all pending migrations.
Check Status
Shows which migrations have been executed and which are pending.
Rollback Migrations
Rolls back the last batch of migrations (or specified number of batches).
Configuration
The schema-migrator.yml file contains your project's configuration:
Usage Examples
Project Structure
Migration Examples
Create a table:
Add columns:
Create indexes:
Multiple Projects
Schema Migrator works per-project. You can use it in multiple projects simultaneously:
Each project maintains its own configuration and migration state.
Requirements
- PHP 8.1 or higher
- PDO extension for your database
- Composer (for global installation)
License
The MIT License (MIT). Please see License File for more information.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Now you have Laravel-style migrations in any PHP project! 🎉
All versions of schema-migrator with dependencies
illuminate/database Version ^11|^12|^13
illuminate/events Version ^11|^12|^13
symfony/console Version ^6.0|^7.0
symfony/yaml Version ^6.0|^7.0