Download the PHP package scedel/codegen-symfony without Composer
On this page you can find all versions of the php package scedel/codegen-symfony. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package codegen-symfony
scedel/codegen-symfony
Generates Symfony-ready PHP classes from Scedel schemas (SchemaRepository) with symfony/validator attributes.
RFC support
What it does
- Builds DTO-like classes for custom record-like Scedel types.
- Maps many builtin Scedel constraints to Symfony
Assert\*attributes. - Understands control annotations under
php.*andphp.symfony.*. - Returns warnings for unsupported/ambiguous constructs.
API usage
CLI
Supported control annotations
Type-level:
@php.codegen.namespace = "App\\Dto"@php.codegen.dir = "src/Dto"@php.codegen.class = "PostDto"@php.codegen.file = "PostDto.php"@php.symfony.ignore = "true"@php.symfony.validation.groups = "create,update"@php.symfony.constraint... = "..."
Field-level:
@php.codegen.property = "authorEmail"@php.symfony.ignore = "true"@php.symfony.type = "?string"@php.symfony.not_blank = "true"@php.symfony.validation.groups = "create"@php.symfony.constraint... = "..."
Custom constraint injection:
@php.symfony.constraint = "Length(min: 3, max: 255)"@php.symfony.constraint.primary = "NotBlank"@php.symfony.constraint.secondary = "Regex(pattern: '/^[A-Z]+$/')"
If the value does not start with Assert\, generator prepends it automatically.
Notes
- Non-record-like custom types are skipped with warnings.
- Inline record fields are generated as
arraywith warnings. - Conditional types are simplified (best-effort mapping + warnings).
- Unsupported Scedel validators/arguments are reported in warnings.
All versions of codegen-symfony with dependencies
PHP Build Version
Package Version
The package scedel/codegen-symfony contains the following files
Loading the files please wait ...