aimeos/upscheme
Database migration and schema management for Laravel, using a simple, high-level PHP DSL. Create, modify, and version tables and indexes with up/down steps, auto rollbacks, and environment-aware execution. Works standalone or with Laravel apps.
composer require aimeos/upschemeupscheme to manage database schema evolution without relying on Laravel’s built-in migrationsphp artisan upscheme:make CreateUsersTable—this generates a PSR-4 compliant PHP file in database/upscheme/upscheme computes the difference to apply automaticallydatabase/upscheme/ using the Table and Column classesUpscheme::run() in AppServiceProvider::boot() to auto-apply schema changes on application startup (e.g., in dev/staging)php artisan upscheme:apply as a deployment step to preview and apply migrations explicitlyALTER TABLE, ADD COLUMN, DROP INDEX, etc.Schema::table('table', fn ($table) => $table->...) for imperative updates if fine-grained control is needed (fallback to traditional migration style)migrations table—its own tracking happens via schema_version table (ensure it’s created first, ideally via upscheme:apply)renameColumn() and renameTable() helpers if supported by the DB platformdoctrine/dbal’s platform option for accurate DDL generation (e.g., UUID support, sequences)php artisan upscheme:show to preview the schema diff before applyingColumn::register('custom_type', Closure::fromCallable([...])) if needed for legacy DBsHow can I help you explore Laravel packages today?