Symfony bundle that generates Doctrine entities from YAML schema definitions.
- PHP 7.4+ (bundle source), PHP 8 attributes in generated output
- Symfony 5.4 / 6.x / 7.x
- Doctrine ORM 2.10+ / 3.x
- PHPUnit 9.x, PHPStan level 8
vendor/bin/phpunit # Run tests (79 tests, 287 assertions)
vendor/bin/phpstan analyse # Static analysis (level 8)
php bin/console meta-generate:entity # Generate entities from schema- Namespace:
Meta\EntityBuilderBundle - Entry point:
src/MetaEntityBuilderBundle.php - DI config:
src/Resources/config/services.yaml - Command:
src/Command/GenerateEntityCommand.php - All services have interfaces; concrete classes are
final
- PHP 7.4 compatible syntax in bundle source (
?Type, noreadonly/unions) - Custom code preserved between
// @custom-code-start/// @custom-code-endmarkers - Schema change detection via MD5 checksums
- State stored in
var/meta_entity_builder/.schema_state.json - Default schema path:
config/entities.yaml - Tests in
tests/Unit/andtests/Functional/