Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Code Generator Laravel Package

publero/code-generator

A Laravel package for generating PHP code from templates and database schema, helping scaffold models, controllers, and related classes to speed up development. Suitable for teams wanting repeatable, customizable code generation, though it has limited community adoption and sparse documentation.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for internal scaffolding tooling. This package sits in the "generate boilerplate code from a schema/model definition" category. It is direct prior art for a decision we will face anyway: do we ship our own generator, adopt a maintained OSS generator, or keep relying on hand-written artisan make:* stubs plus code review conventions.
  • Developer-velocity roadmap items. If a quarterly goal is "reduce time-to-first-PR for new services" or "standardize controller/repository/form layers," a code generator is a plausible lever. This package is evidence that the problem has been attempted before in the PHP ecosystem — useful for sizing the work, not for shipping it.
  • Standardization and convention enforcement. Generators are a governance tool as much as a productivity tool: they let a platform team encode the "blessed" layering (DTO → service → repository → resource) once and have every team inherit it. That is a legitimate platform-team roadmap bet independent of this specific package.
  • Admin/CRUD-heavy product surfaces. If a meaningful share of our roadmap is internal tooling, back-office CRUD, or data-entry screens, generator investment pays back faster. If our roadmap is API-first with thin hand-written surfaces, it does not.
  • Legacy maintenance scoping. If we still own a Symfony 2 application, this package is a candidate for "keep, freeze, and plan removal" rather than "evaluate for adoption" — which is itself a roadmap input for technical-debt budgets.
  • Explicitly not a decision to adopt. With zero stars, zero dependents, and a Symfony 2 target, this should be recorded as a rejected option with rationale, so we do not re-litigate it in three months.

When to Consider This Package

Consider it only in narrow, non-production contexts:

  • You are maintaining an existing Symfony 2 application that already depends on it. In that case the work is containment — pin the version, isolate the callsites, and schedule removal — not new adoption.
  • You want reference material for designing your own generator. Reading it as prior art to understand the domain model (schema → class metadata → template rendering) is reasonable and carries no runtime risk. MIT licensing makes this clean.
  • You are doing due-diligence on the "buy" side of build-vs-buy and want a documented baseline for why in-house is preferable.

Look elsewhere — decisively — when any of the following is true:

  • The target is Laravel. This is a Symfony 2 component: it will not integrate with Laravel's service container, Eloquent, Artisan, or package discovery without a rewrite. The integration cost almost certainly exceeds writing a generator from scratch.
  • You need a supported PHP runtime. Symfony 2 reached end-of-life in 2018; the package predates PHP 7 type-system advances, PSR-12, and modern static analysis. It will not survive a PHP 8+ or CI/SAST gate.
  • You need a maintenance guarantee. Zero stars and zero dependents means no bus factor, no downstream bug reports, no security patch path, and no community answer when it breaks. Every hour spent debugging is an hour nobody else has spent before you.
  • You expect it to generate idiomatic modern code. Output will reflect 2013-era conventions, which is the opposite of the standardization goal that motivates adopting a generator in the first place.
  • Mature alternatives cover the need. For Laravel, the maintained options are the framework's own make:* commands, Blueprint-style schema-to-code generators, or established admin/CRUD scaffolding packages. These have active maintainers, issue trackers, and Laravel-native integration.

How to Pitch It (Stakeholders)

For executives — recommendation: do not adopt.

This is an unmaintained Symfony 2 code-generation component with zero stars and zero community dependents, first published in an era that ended when Symfony 2 went end-of-life in 2018. It is not a Laravel package and would require a rewrite to use in our stack. Adopting it would add a dependency we cannot get support for, cannot patch, and cannot staff. The strategic value here is informational, not operational: it confirms that schema-driven code generation is a real, recurring engineering need, and it gives us a free (MIT) reference design if we decide to build that capability ourselves.

For engineering — framing: prior art, not a dependency.

The genuine decision is build vs. buy a maintained generator vs. do nothing. Doing nothing is defensible and cheap; buying a maintained, Laravel-native generator is the low-risk middle path; building is justified only if our conventions are distinctive enough that no OSS generator encodes them. This package is best used as a 30-minute read to steal the domain model, then archived. If we want the capability, scope it as a small platform-team investment with our own templates, our own linting, and a snapshot test suite over generated output — so the generator is versioned and its output is reviewable like any other code. Flag any existing internal usage as technical debt to be scheduled for removal, and record this evaluation as a closed decision so the question does not resurface.

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elsayed85/laravel-api-exceptions
ouhssini/laravel-demo-mode
daworks/ncloud-outbound-mailer-driver
gp247/cms
ignibyte/aic-gates
nexa-merchant/blog
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource