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

jtc-solutions/code-generator

A Laravel package for generating code scaffolding, helping you quickly create boilerplate classes and files from customizable templates so you can spend less time on repetitive setup and more on building features.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Feature scoping and estimation for internal/back-office work. A Laravel code generator is a dev-time productivity tool: it scaffolds models, migrations, controllers, requests, and CRUD views from a schema or spec. As a PM, this directly informs how you size "standard CRUD screen" work — the delta between hand-written and generated boilerplate is often 40–70% of the effort on admin/ops features. v0.1.2 widens the generated surface to services and repositories, which pushes the addressable estimate from "controller + request boilerplate" up toward "the whole data-access layer" — a larger schedule lever, but also a larger review surface.
  • Build vs. buy vs. build-internally for tooling. The real decision isn't "this package or nothing" — it's "third-party generator, a mature alternative, or a thin internal artisan make:* stub set." The new service/repository generation makes this a sharper decision: you're no longer adopting a boilerplate printer, you're adopting an opinionated architecture (controller → service → repository). That is a platform-standards call, not a one-off dependency, and it needs an owner.
  • Architecture governance and convention enforcement across squads. This is where v0.1.2 changes the calculus most. Repository and service layers are exactly the seams where teams disagree, so a generator that emits them by default can be a cheap forcing function for consistency — or a cheap way to standardize on a layering your senior engineers didn't choose. The configurable parent controller is a smaller but real signal: the package now accommodates host-app base classes, which matters for fitting into an existing codebase rather than greenfield.
  • MVP and time-to-first-demo tradeoffs. Still a schedule lever, not a quality lever — and now a bigger one per resource (more generated files per run), which increases both the speedup and the cost of getting the output wrong.
  • Schema-fidelity and data-modeling decisions. Nullable property support means generated code now reflects realistic schemas (optional fields, soft relations) rather than the happy path. That improves the fidelity of discovery spikes: a generated slice looks more like the real domain, so stakeholder walkthroughs are less misleading.
  • Validation-policy decisions surface earlier. The single DTO for Create and Update is a genuine product-adjacent opinion: create and update often have different rules (immutable fields, required-on-create/optional-on-update, partial updates). If your product needs that split, generated code will need hand-editing or template forking — worth knowing before it becomes a review-time argument in every PR.
  • Not supported: runtime behavior, customer-facing performance, or anything that ships to production as a dependency. This remains a build-time tool; treat its risk profile accordingly. Note that generated repositories and services are runtime code even though the generator isn't — the review bar on that output is higher than on a controller stub.

Assumption to validate: the package name and category imply schema/CRUD scaffolding for Laravel. Confirm capabilities, Laravel version support, and license before any of the above is treated as fact. As of v0.1.2 the capability set includes models/migrations/controllers/requests plus services, repositories, configurable controller inheritance, nullable properties, and a unified create/update DTO — verify all of it against the actual output, not the changelog.

When to Consider This Package

Consider it if:

  • You are Laravel-only and the work is repetitive CRUD over Eloquent models.
  • Your target architecture already resembles what the generator emits — controller → service → repository with a DTO layer. If it does, v0.1.2 is a materially better fit than v0.1.x; if it doesn't, the new features make the mismatch worse, not better, because there's more generated code to rewrite.
  • You have a base controller you can wire in via the configurable parent — that's the cheapest available signal that the output can be made to fit a real app.
  • The blast radius is small: generator output is committed code your team reviews, and the package is never a runtime/production dependency.
  • Your team is comfortable vendoring or forking — i.e., you're evaluating the output quality and templates, not buying a support contract. This matters more now: services and repositories mean more templates to own.
  • You have a concrete spike: one real resource, generated end-to-end (including the new service/repository layers), compared against what a mid-level engineer would write.

Look elsewhere if:

  • Adoption signals matter to you — and here they should. Zero stars, zero dependents, a zero composite score, and an "opportunity" score of ~23 are all weak signals: no community validation, no downstream usage to learn from, unclear maintenance depth, and no evidence of a security or compatibility track record. A second release does not change this; it's still one maintainer's output with no independent users. You remain effectively the first production user.
  • You need stability. v0.1.2 is pre-1.0 and already ships behavior changes, not just additions — consolidating Create/Update DTOs changes generated signatures. Expect more of this. Pin the version, expect template drift, and budget for re-generating or re-diffing after upgrades.
  • Your architecture is deliberately thin — no repository layer, active-record style Eloquent, or service classes only where justified. The generator will now fight you.
  • Your validation model requires distinct create vs. update semantics; the unified DTO means hand-editing or forking templates on every resource that needs it.
  • You need long-term support, SLAs, or a maintained dependency for an SBOM/compliance review. An unmaintained generator that falls behind Laravel majors becomes a migration tax.
  • A mature alternative fits (e.g., laravel-shift/blueprint, crestapps/laravel-code-generator, infyomlabs/laravel-generator) or your own stub-based artisan commands would be ~1–2 days of work and zero external risk. This remains a strong default against an unproven single-maintainer package.
  • The task isn't CRUD-shaped. Generators add little to complex domain logic, integrations, or event-driven workflows.

If you proceed: timebox a spike (1–2 days, extended slightly to cover the new service/repository output), pin the version, vendor the source, review the license and issue tracker, and require that generated code — including services and repositories — passes your existing lint/static-analysis/test gates before it's accepted. Explicitly diff the unified DTO against your create/update validation needs. Decide up front who owns the fork, and re-run the spike after any future release that changes generated signatures.

How to Pitch It (Stakeholders)

For executives (one paragraph): This is a developer-productivity tool, not a product feature. It generates the repetitive code around database-backed screens — now including the service and repository layers, not just controllers and forms — which is the predictable, low-value part of an admin panel or internal tool. The upside is schedule: faster time-to-first-demo and less engineering time per standard CRUD screen, with a larger saving per screen than the previous version. The risk is unchanged and still decisive: the package has no measurable adoption (no dependents, no community), it's at version 0.1.2, and the latest release already changed generated behavior rather than only adding to it — so we would be an early adopter of unproven, still-shifting tooling, and it now bakes in an architecture choice (controller → service → repository) that we should make deliberately if we make it at all. Recommendation: approve a short, timeboxed evaluation against a single real feature, with a fallback to internal templates. Do not standardize on it, and do not let it enter the production dependency surface.

For engineering (one paragraph): Evaluate jtc-solutions/code-generator as a build-time scaffold generator for Laravel CRUD, now covering models, migrations, controllers, requests, services, and repositories, with configurable controller inheritance, nullable property support, and a single DTO shared by Create and Update. Success criteria for the spike: generate one representative resource end-to-end, diff every generated file against our conventions — especially whether we actually want a repository layer and whether one DTO can satisfy our create vs. update validation — and measure time-to-merged-PR against the hand-written baseline, counting the edit cost, not just the generation cost. Assume you may need to fork and maintain the templates, and note that v0.1.2 already changed generated signatures, so treat the output format as unstable. Check Laravel version support, license, and open issues before investing. If the output requires more than light editing, if the architecture doesn't match ours, or if we'd be the only user, prefer a small internal stub set we control. Log the decision — including "we passed" — so we don't re-litigate it next quarter.

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.
3mdikram/worldmoneywords
snowsoft/config
itmosoft/laravel-subscriptions
larva/laravel-ai-qwen
diephp/sequences
users-au/socialite-provider
twidpay/twid-logger
mrnewport/laravel-plaid
mrnewport/laravel-repo
mrnewport/laravel-docsign
mrnewport/laravel-stow
mrnewport/laravel-flow
mrnewport/laravel-priceable
mrnewport/laravel-nestedterms
fredmeng/laravel-apidoc-generator
itstructure/laravel-multilingual-tools
pdustdar/elasticsearch
markupai/php-sdk
rlacerda83/lumem-microservice-shipment
uni-method/symfony-lib