Projectsphp-builderCompatibility

PHP Builder

Package

A PHP code builder for programmatically generating classes, interfaces, traits, and enums.

Compatibility

Supported versions

PHPStatus
8.5Supported

This package line requires PHP 8.5. Emitters always produce PHP 8.5 syntax (for example, final on promoted constructor properties).

Dependencies

PackageRole
bradietilley/php-dataBuilder objects extend Data for typed construction

Laravel is not required at runtime.

Versioning

Package majors track PHP minors:

PackagePHP
v1.x8.5
v2.x8.6

Within a major, this package follows Semantic Versioning. Breaking API changes are reserved for major releases (which also move to the next PHP minor).

Notes for contributors

The test suite, static analysis and code style all run in CI:

composer test          # Pest
composer analyse       # PHPStan
composer format        # Pint (autofix)
composer format:check  # Pint (check only)

All three must pass before a change is merged.