Myxa logo

Myxa

Version: 1.0.6

A lightweight, AI-powered PHP framework for teams that want to build modern systems fast without giving up clarity, performance, or developer joy.

Myxa is designed around recent PHP practices: strict typing, explicit structure, container-driven architecture, fast backend execution, and a developer experience that feels approachable whether you stay server-rendered or grow into a hybrid frontend.

Documentation

Database Migrations

Migrations keep SQL schema changes versioned with the app.

Common Commands

Generate a migration:

./myxa make:migration create_posts_table --create=posts

Run pending migrations:

./myxa migrate

Show status:

./myxa migrate:status

Rollback:

./myxa migrate:rollback --step=1

The migration repository table is created automatically if it does not exist.

Reverse Engineering and Schema Diffing

Snapshot the current schema:

./myxa migrate:snapshot

Compare a live table to the stored snapshot:

./myxa migrate:diff users
./myxa migrate:diff users --write

Generate a create migration from an existing table:

./myxa migrate:reverse users

This is useful when adopting an existing database into the migration workflow.

Model Scaffolding From Existing Sources

Generate from a live table:

./myxa make:model App\\Models\\AuditLog --from-table=audit_logs

Generate from a migration file:

./myxa make:model App\\Models\\AuditLog --from-migration=2026_04_17_120000_create_audit_logs_table.php

Use generated models as a starting point, then review property types, casts, guarded fields, and hidden fields before treating them as final.

Further Reading