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

Fastapi Laravel Package

larafast/fastapi

A Laravel package for quickly scaffolding API endpoints and resources, reducing boilerplate so you can build JSON APIs faster with familiar Laravel conventions and tooling.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit. larafast/fastapi is a dev-time Laravel code generator: an Artisan command that scaffolds models, CRUD API controllers, and API resources. Architecturally this is low-blast-radius — it emits plain PHP files into the application repository and has no runtime footprint. It fits any conventional Laravel monolith or API service that has not standardized on a different architectural pattern (DTOs, actions, repositories, CQRS). It does not fit teams with strong in-house conventions, because the value proposition is "accept our template," and stale templates become a source of drift rather than leverage.

Integration feasibility. Mechanically trivial: composer require larafast/fastapi (ideally --dev), publish config/stubs, run the generator. The real friction is semantic, not mechanical — the generated output must be reviewed against team standards for validation (FormRequests), authorization (policies/gates), pagination/filtering, mass-assignment safety, and test coverage. The package name collides with the Python FastAPI framework, which is a real discoverability and documentation red flag.

Technical risk. High, and concentrated in provenance rather than runtime:

  • Abandonment. Last release March 2023; no signal of maintenance across the Laravel 10/11/12 cycles. Composer constraints will likely block install on current Laravel versions without --ignore-platform-reqs or a fork.
  • Bus factor of one. Single maintainer, no visible governance, no security disclosure process.
  • Zero dependents. No evidence of production use anywhere; the 123 stars and opportunity score of 0.05 confirm weak ecosystem pull. This is a demo-grade package, not infrastructure.
  • Output correctness unknown. Generated controllers are exactly where security-relevant defaults (authorization, validation, mass assignment) get skipped, and stale generators reproduce stale patterns.

Key questions. Which Laravel/PHP versions are actually supported? Does it generate FormRequests, policies, and tests, or only the happy-path controller/resource? Does it emit routes, migrations, and factories? Are stubs publishable/customizable? Is the license permissive enough to fork and vendor? What is the measured time saved per endpoint versus make:model -mcr plus make:resource?

Integration Approach

Stack fit. Suitable only as a require-dev convenience on a Laravel 9/10 codebase where the team has no existing scaffolding convention. On Laravel 11+ or on any codebase with an established generator (Blueprint, InfyOm, Apiato, or an internal command), it is redundant.

Migration path. Excellent exit story: because output is committed source, removing the package is a composer remove with no data or runtime migration. The residual cost is auditing already-generated code, not untangling a dependency. This asymmetry — cheap to try, cheap to abandon — is its only strong argument.

Compatibility. Verify the composer.json Laravel/Illuminate constraint ceiling before committing. Expect it to lag. If it requires patching, you have implicitly forked it, which changes the ownership model entirely.

Sequencing.

  1. Spike (1–2 days): install in a scratch branch on the target Laravel version; generate one representative resource end-to-end.
  2. Diff against standards: compare output to a hand-written reference endpoint across validation, authorization, pagination, error handling, and tests.
  3. Measure: endpoints-per-hour versus native Artisan generators; include review and cleanup time, not just generation time.
  4. Decide: adopt (publish and maintain customized stubs), fork-and-own, or — most likely — harvest the stubs as a reference and build a ~200-line internal command that encodes team conventions.
  5. If adopted: pin the version, lock it to require-dev, document the stub-ownership model, and assign an owner.

Operational Impact

Maintenance. Upstream is effectively unmaintained; adopting it means the team owns the templates. Budget a half-day per Laravel major upgrade to validate or patch the generator. Without an assigned owner, it silently rots and starts producing non-conforming code — a worse outcome than no generator.

Support. None beyond the repository. No paid tier, no SLA, no security advisory channel. Treat any discovered issue as internal work.

Scaling. Code generation scales linearly with team size only if the templates are the single source of truth for conventions. With a stale third-party generator, scaling produces divergence: newer engineers copy generated patterns that no longer match house style, and review burden increases. Small teams benefit; large teams need an owned generator.

Failure modes.

  • Composer constraint conflict blocking a Laravel upgrade (highest likelihood).
  • Generated code missing authorization or validation and shipping to production because it "looked standard."
  • Template drift from current Laravel idioms (attribute-based routing, Model::preventLazyLoading, typed resources).
  • Silent abandonment — no updates, no deprecation notice, and consumers unaware.
  • Vendor disappearance (repo deletion), mitigated only by forking into internal VCS.

Ramp-up. Hours for any Laravel developer: one Artisan command and a config file. The hidden cost is unlearning and cleanup — reviewing and correcting generated scaffolding per endpoint can consume more time than writing it, particularly if the output is 60% right. Net productivity gain is plausibly negative for teams with existing conventions and plausibly modest-positive for greenfield teams without them.

Recommendation. Do not adopt as a platform dependency. Run the two-day spike only to mine the stubs for an internal generator; otherwise rely on native Artisan scaffolding (make:model -mcr, make:resource, make:request) or Blueprint. The package's score, staleness, and zero dependents collectively indicate low strategic opportunity — the correct TPM decision is a documented "no" with a lightweight reference-review, not an integration.

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.
socialdept/atp-orm
cboxdk/laravel-assistant-client
socialdept/atp-resolver
socialdept/tenant-domains
tautvydasr/blade-class-names
socialdept/color-scales
maherelgamil/controller
coleus/widgets
coleus/table
coleus/users
coleus/music
coleus/health
coleus/calendar
coleus/notes
coleus/support
coleus/settings
coleus/apps
seampact/laravel
emmyconceptng/laravel-ng-postcode
jjsquady/round-robin