PHPackages                             nudelsalat/migrations - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. nudelsalat/migrations

ActiveLibrary[Database &amp; ORM](/categories/database)

nudelsalat/migrations
=====================

State-based database migration engine for PHP with full ORM support

v1.0.2(1mo ago)010Apache-2.0PHPPHP &gt;=8.1CI passing

Since Apr 18Pushed 1mo agoCompare

[ Source](https://github.com/asadraza-69/nudelsalat)[ Packagist](https://packagist.org/packages/nudelsalat/migrations)[ Docs](https://asadraza-69.github.io/nudelsalat_doc/)[ RSS](/packages/nudelsalat-migrations/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (4)Used By (0)

Nudelsalat 🐘👑
=============

[](#nudelsalat-)

**State-based database migration engine for PHP.**

Nudelsalat is a professional-grade migration engine that brings framework-level features to any PHP project. It offers intelligent autodetection, version-resilient data migrations, and rock-solid integrity protection.

[![PHP Version](https://camo.githubusercontent.com/7663c9d53dc13cedaf0660a8745a7e77d2dd711257f36aa86ebce12a0600ef42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c75652e737667)](https://php.net)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)![Tests](https://camo.githubusercontent.com/da8019f8339a6989b0f333a40d4c7001c46f9b3e97e49241951d3e068ff6ddfb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d353525324225323070617373696e672d677265656e2e737667)

Why Nudelsalat?
---------------

[](#why-nudelsalat)

Most PHP migration libraries are either too simple (manual SQL scripts) or too coupled to a specific framework. Nudelsalat provides a standalone, configuration-driven engine with "High-IQ" features:

- **🧠 Intelligent Autodetector**: Say goodbye to manual migration writing. Nudelsalat scans your models and detects renames, type changes, and relationship shifts automatically.
- **🛡️ The Integrity Shield**: Every migration has a SHA256 checksum. Nudelsalat prevents "migration drift" by blocking edits to already-applied history.
- **🧬 Relational Mastery**: Automatic Many-to-Many junction table management and Foreign Key orchestration across MySQL, PostgreSQL, and SQLite.
- **❄️ Frozen History**: Data migrations use a `StateRegistry` to access models exactly as they existed when the migration was written. Your history is indestructible.
- **🔍 Database Introspect**: Already have a database? Use `./nudelsalat introspect` to automatically generate your PHP Model classes in seconds.

Installation
------------

[](#installation)

### Via Composer (Recommended)

[](#via-composer-recommended)

```
composer require nudelsalat/migrations
```

### Manual Installation

[](#manual-installation)

```
# Clone or download the package
git clone hhttps://github.com/asadraza-69/nudelsalat.git

# Install dependencies
cd nudelsalat
composer install
```

Quick Start
-----------

[](#quick-start)

### 1. Configuration

[](#1-configuration)

Create a `nudelsalat.config.php` in your project root:

```
