PHPackages                             albedev/ddl-artisan - 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. albedev/ddl-artisan

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

albedev/ddl-artisan
===================

Generate Laravel migrations from DDL

1.0.0(9mo ago)62MIT-NRPHPPHP ^8.0

Since Aug 4Pushed 9mo agoCompare

[ Source](https://github.com/albedev/ddl-artisan)[ Packagist](https://packagist.org/packages/albedev/ddl-artisan)[ RSS](/packages/albedev-ddl-artisan/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

DDL Artisan
===========

[](#ddl-artisan)

ddl-artisan is a PHP tool designed to parse raw MySQL DDL files and automatically generate fully compatible Laravel migration files. It supports a wide variety of column types, indexes, foreign keys (including composite and cross-database), and modern Laravel migration syntax. Built for developers who want to speed up the migration process in existing or legacy databases.

---

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

[](#installation)

You can install the package via Composer:

```
composer require albedev/ddl-artisan
```

And... that's it! The package will automatically register itself in Laravel. To start the migration generation process, you can use the provided Artisan command.

```
php artisan ddl:generate path/to/your-ddl.sql
```

**Attention**: path/to/your-ddl.sql should be a valid MySQL DDL file and the path should be accessible by your Laravel application.

Features
--------

[](#features)

- Parses MySQL DDL statements into structured Laravel migrations
- Supports all major column types (INT, VARCHAR, TEXT, JSON, ENUM, etc.)
- Handles indexes: INDEX, UNIQUE, FULLTEXT, SPATIAL
- Handles foreign keys, including composite and cross-database
- CLI interface for instant usage (ddl-artisan generate)
- Easily installable via Composer

Known Issues
------------

[](#known-issues)

- The package is still in development, so some features may not be fully implemented or tested.
- The parsing of complex DDL statements may not be perfect, especially for edge cases.
- Foreign keys migration has some issues with indentation and formatting, which will be fixed in future releases. (Doesn't affect functionality, just aesthetics)

License
-------

[](#license)

This project is licensed under the MIT-NR License - see the [LICENSE](LICENSE) file for details.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance57

Moderate activity, may be stable

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

287d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/72ce7c27299f50b2e794a7c0514220ddba952e81706501361b67b23c619da82f?d=identicon)[albedev](/maintainers/albedev)

---

Top Contributors

[![albedev](https://avatars.githubusercontent.com/u/25616798?v=4)](https://github.com/albedev "albedev (2 commits)")

### Embed Badge

![Health badge](/badges/albedev-ddl-artisan/health.svg)

```
[![Health](https://phpackages.com/badges/albedev-ddl-artisan/health.svg)](https://phpackages.com/packages/albedev-ddl-artisan)
```

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
