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

Laravel Facade Generator Laravel Package

sunaoka/laravel-facade-generator

Laravel Facade Generator adds an Artisan command that scaffolds facade classes for any class in your app, generating the accessor and docblocks automatically so you can call services statically without writing boilerplate by hand.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Developer productivity / DX investments. This is scaffolding tooling: it removes a few minutes of boilerplate per facade and, more importantly, enforces a consistent namespace, stub, and accessor convention across a team. The PM decision it informs is "do we standardize this convention and tool it, or leave it to individual discretion?"
  • Architecture standardization for internal packages and SDKs. If your organization ships internal Laravel packages or shared service layers that expose a static entry point, a generator makes the "public API surface" of those packages cheap and uniform to produce. This is where the package has the clearest product justification.
  • Build vs. buy vs. skip. The artifact produced is roughly a ten-line class plus a container binding. "Buy" here costs one require-dev line and near-zero runtime risk; "build" costs an afternoon. The honest conclusion is that this is not an architectural dependency — it is a convention enforcer. Decide to adopt it only if you have already decided facades are part of your house style.
  • Legacy and incremental-modernization work. Teams maintaining large Laravel codebases built on facades can use it to keep new services consistent with existing patterns while migrating toward constructor injection incrementally, rather than forcing a big-bang refactor.
  • Not a roadmap input. There is no user-facing capability, performance, or reliability implication. Do not let it occupy roadmap or architecture-review bandwidth beyond a lightweight tooling decision; treat it as a dev-environment nicety alongside formatters and linters.

When to Consider This Package

Consider adoption when:

  • Your team already uses facades as a convention and creates them often enough that copy-paste drift (wrong namespace, missing accessor, inconsistent docblocks) is a real annoyance.
  • It is installed as a require-dev dependency only — it generates code and does not participate in production runtime behavior, which keeps the blast radius of abandonment or breakage close to zero.
  • You have confirmed compatibility with your Laravel and PHP versions, and you are willing to pin the version and vendor or fork the stub if the maintainer moves on. With 16 stars and a low composite score, assume single-maintainer risk; the mitigating factor is that the entire surface area is a command and a template.
  • You want the generator to coexist with static-analysis and IDE tooling — pair it with something like laravel-ide-helper so generated facades are discoverable by PHPStan/Psalm and autocompletion, rather than becoming invisible magic.

Look elsewhere — or simply skip it — when:

  • Your engineering standards follow current Laravel guidance favoring constructor injection and real-time facades, in which case generating conventional facades actively works against the direction you want the codebase to move.
  • You need one or two facades total. Writing them by hand is faster than evaluating, installing, and pinning a dependency.
  • You require a maintained, supported dependency with a vendor SLA. This is community convenience tooling with a small user base; do not put it on a critical path or in a platform-standard template without a fork plan.
  • You actually want automatic container binding rather than facade class generation — that is a handful of lines in an existing service provider and does not warrant a package.

How to Pitch It (Stakeholders)

For executives: This is a small, free, MIT-licensed developer convenience for our Laravel codebase. It automates a repetitive code-generation step that our engineers would otherwise do by hand, which improves consistency and saves a little time on each new service we expose. It is installed only in development tooling, never ships to production, adds no runtime risk, and can be removed at any time without touching application code. It is not a strategic dependency and does not affect the product roadmap — approve it as routine tooling hygiene, not as an architecture decision.

For engineering: One Artisan command generates a facade class with the correct namespace, stub, and container accessor, eliminating the copy-paste errors and naming drift we get when everyone hand-rolls them. Add it to require-dev, pin the version, and check Laravel/PHP compatibility on upgrade. Caveats worth stating plainly: it is a 16-star, single-maintainer package, so treat it as forkable scaffolding rather than a trusted dependency — the generated output is trivial to reproduce if it stops being maintained. Pair it with IDE-helper tooling so generated facades stay visible to static analysis, and scope its use to code where facades are already our convention. It should not be used to encourage new static-access patterns where constructor injection is the better default.

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.
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk
adachsoft/changelog-linter
adachsoft/collection
payerurl/telegrambot-crypto-payment-instant-payout
dskripchenko/laravel-hybrid-search
riorizkyrainey/lara-ced
mehedimi/static-vel
zharp/zharp
nonsapiens/bigquery-model-sync
lgu-bayambang-ict-office/lgu-laravel-development-standards
andydefer/laravel-support
se7enxweb/flysystem
lampwick/laravel
jeslage/statamic-emojis
micahdshackelford/rmap-laravel