idci/code-generator-bundle
A Symfony bundle for generating PHP code from customizable templates. Define generators and templates, then produce classes, entities, or boilerplate through console commands or the service API. Configurable output and Symfony integration make it easy to automate repetitive code scaffolding.
0/O, 1/I/L so support can read codes over the phone), length vs. batch size, case sensitivity, prefix/format conventions, checksum digits, and retry-on-collision behavior.ramsey/uuid, hidehalo/nanoid-php, Laravel's Str::random with a custom alphabet), or (c) pay a voucher/promotions platform if you also need redemption, expiry, batch tracking, and reporting. This package informs (a) and (b); it does not justify (c) on its own.Bundle class, a DependencyInjection extension, Doctrine mappings, XML service definitions. No service provider, no facade, no publishable config, no Laravel integration of any kind. Bundles are Symfony's packaging unit; Laravel has no equivalent loading path.composer require will fight Laravel's Symfony 6/7 components on version constraints. Co-installation means unsatisfiable graphs or downgrading the host framework.random_int/a CSPRNG, or mt_rand/uniqid (a direct enumeration vector for vouchers and invite tokens)?To executives: This is not a package we should adopt. It's a short read of a code-generation class, not a maintained dependency — zero stars, zero dependents, built for a Symfony 2.x era that's been out of support since 2018. Taking it on adds an unmaintained, unpatched component to our supply chain in exchange for logic we can own outright in about a day. Adoption risk is permanent ownership of a dead code path; the upside is a head start measured in hours. Recommendation: fund a small in-house implementation backed by a database uniqueness constraint, and use this repository strictly as documentation.
To engineering: There is no Laravel glue — "adopting" it means copying the algorithm and rewriting every integration artifact (service registration, config, persistence). Use it as a design prompt: it enumerates the alphabet, length, entropy, and collision-handling tradeoffs. The implementation should be ours — a single CodeGenerator service with configurable alphabet and length, random_int-based selection, persistence via Eloquent with a unique index on the code column, and a bounded retry loop on duplicate-key exceptions. Concurrency-test it before shipping.
The ask: Approve a small in-house build (or a maintained library for the narrow piece we need), and treat this repository as reference material rather than a dependency.
How can I help you explore Laravel packages today?