Download the PHP package maxbeckers/php-builder-generator without Composer
On this page you can find all versions of the php package maxbeckers/php-builder-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download maxbeckers/php-builder-generator
More information about maxbeckers/php-builder-generator
Files in maxbeckers/php-builder-generator
Package php-builder-generator
Short Description Generate builder patterns for PHP classes using attributes
License MIT
Informations about the package php-builder-generator
PHP Builder Generator
Generate builder patterns for PHP classes — a dev-only dependency.
Features
- 🚀 Dev-only: No production dependency — the library is never needed at runtime
- 🏃 Zero Runtime Overhead: Builders generated at build time, not runtime
- 📝 IDE Friendly: Full autocomplete and type checking support
- 🔧 Highly Configurable: Customize every aspect of generation via a single config file
- 🎯 Type Safe: Preserves all type information from original classes
- 🏗️ Constructor Aware: Intelligently handles constructor parameters
Quick Start
1. Install as dev dependency
2. Allow the Composer plugin
Add to your composer.json:
3. Update Autoload for Generated Builders
Important: The path must include the namespace (e.g.
.../App/), not just the base output directory.
After updating, run:
4. Create php-builder-generator.php
Add a config file to your project root:
Your production classes need no imports from this library — they stay completely clean:
5. Generate & Use
Builders are automatically generated during composer install/update, or run:
Use your generated builder:
Documentation
📚 Complete Documentation
Quick Links
- Installation & Setup - Detailed installation guide
- Basic Usage - Learn the fundamentals
- Configuration Guide - All configuration options
- Basic Examples - Common use cases
- Contributing - How to contribute
Requirements
- PHP 8.2 or higher
- Composer 2.0 or higher
Show Your Support
If you find this package helpful, I would be happy to get a ⭐ star on GitHub! It helps others discover the project and motivates continued development.
License
This project is licensed under the MIT License - see the LICENSE file for details.
Questions or Issues? Please open an issue on GitHub.
Built with ❤️ for PHP developers
All versions of php-builder-generator with dependencies
composer-plugin-api Version ^2.0
symfony/console Version ^7.0|^8.0
symfony/finder Version ^7.0|^8.0
twig/twig Version ^3.0