Search by

switon / orm-codegen

switon

Entity and repository code generation from database tables for Switon Framework

v1.0.1 2026-08-22 14:25 UTC

This package is auto-updated.

Last update: 2026-11-23 14:32:27 UTC


README

Codegen CI PHP 8.3+

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://github.com/switon-php/orm-codegen/blob/main/docs/README.md

License

MIT.