switon / orm-codegen
Entity and repository code generation from database tables for Switon Framework
v1.0.0
2026-06-06 13:43 UTC
Requires
- php: >=8.3
- switon/command: ^1.0
- switon/console: ^1.0
- switon/core: ^1.0
- switon/db: ^1.0
- switon/di: ^1.0
- switon/orm: ^1.0
Requires (Dev)
- phpstan/extension-installer: ^1.4
- phpstan/phpstan: ^2.0
- switon/principal: ^1.0
- switon/testing: ^1.0
README
Switon's ORM scaffolding tool for database scans, entity and repository generation, and template overrides.
Highlights
- Entity scanning: existing entities can be grouped by connection and table.
- Code generation: entity and repository pairs can be generated from live database metadata.
- Template control: apps can replace the default templates.
- Output routing: generated files can be placed in the right app directories.
- Class resolution: generated class names are resolved through the package helpers.
Installation
composer require --dev switon/orm-codegen
Quick Start
bash bin/console entity:make --connection=default
Docs: https://docs.switon.dev/latest/orm-codegen
License
MIT.