nette/php-generator
Nette PHP Generator lets you build PHP classes, interfaces, traits, enums, methods and complete files programmatically, with clean pretty-printing, full modern PHP support and a fluent API. Ideal for scaffolding, ORMs and code generators.
Nette PHP Generator is a library for producing PHP code programmatically — classes, interfaces, traits, enums, functions and more. Instead of fragile string templates, you build an object model and let it print valid, neatly formatted code. It handles type declarations, attributes, comments and PHP 8+ syntax, and can even mirror existing classes via reflection.
How can I help you explore Laravel packages today?