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

Fast Api Crud Laravel Package

anil/fast-api-crud

anil/fast-api-crud is a Laravel package for quickly scaffolding CRUD APIs with minimal boilerplate. It streamlines fast API endpoints, controllers, validation, and responses, helping developers ship backend features faster with less repetitive code.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit

v3.1.0 is additive — no breaking changes, no deprecations, no migration requirement. It does not resolve the central architectural question, but it does shift the evidence:

  • The release names a runtime surface directly: HasApiResponse, hooks/contracts/traits, Builder macros, macros, config/enums, and a documented set of "controller properties." That is the vocabulary of a base-controller/trait runtime layer, not a pure code generator. The earlier "probably a generator" hypothesis should be downgraded to "hybrid: generates files and supplies a runtime base layer." That is a meaningful risk increase relative to the prior assessment, because it means the package partially owns the request lifecycle (response shaping, query-param parsing, pagination) even after generation.
  • The new scaffold MCP tool implies the generator path is real and reachable programmatically — with the important difference that code can now be produced by an agent rather than by a human typing an artisan command. Same output, weaker review gate unless we impose one.

The new architecture surface is not the CRUD layer; it is repo-level AI tooling configuration. fast-api:install-ai writes into .claude/, CLAUDE.md / AGENTS.md / .cursor/rules / .github/copilot-instructions.md, and merges JSON into .mcp.json, .cursor/mcp.json, .vscode/mcp.json. That means a Laravel package now edits files that govern every AI tool in the repository, shared with teams who may not be Laravel developers at all. Marked-block idempotency and JSON merge logic reduce but do not eliminate the risk of clobbering bespoke instructions, and the resulting instruction blocks become an unowned, silently-updated agent behavior contract in our codebase.

Integration feasibility

Composer-installable as before. Two new feasibility findings:

  • Positive: the reference set is generated from source and validated by a test asserting every public helper, responder, date scope, Builder macro, config key, and controller property is documented. That is a real quality signal and partially mitigates the previously "unassessed test suite/CI" concern — CI exists, Dependabot is active, and there is at least one documentation-coverage test. It also gives us the source-of-truth documentation the last assessment flagged as missing.
  • Negative: the surface area just expanded from "CRUD scaffolding" to "CRUD scaffolding + MCP server + 12-topic reference corpus + installer for 5 AI tool targets + per-editor config merging." For a single-maintainer package with zero dependents, that is a materially larger blast radius for the same bus factor.

Technical risk

Overall still high, with a changed risk profile:

  • Adoption signal remains effectively zero. Nothing in this release is third-party validation; the only non-bot contributor is the maintainer.
  • Supply-chain / instruction-injection vector is new and real. The package now ships markdown that our AI agents are instructed to follow, plus an MCP server registered in developer tooling. Anyone who can push to that repo can influence agent behavior in our environment — including instructions that touch scaffolding, file reads, or tool use. This must be treated as a trust boundary, not a convenience feature.
  • Write-capable tooling in the agent loop. list_controllers, describe_controller, list_routes, model_info, get_config, query_reference, read_reference, search_reference are read-only and genuinely useful. scaffold writes. An LLM with a scaffold tool plus an instruction file authored upstream is a code-provenance problem, not just a code-quality problem.
  • Runtime coupling confirmed-ish (see Architecture fit) — the "do not adopt if runtime interception" branch is now more likely to trigger.
  • Metadata/release hygiene remains unverified. The prior future-dated release anomaly is not addressed by these notes; tag provenance still needs to be checked against source.
  • Unverified: whether the MCP server makes any network calls (read_reference/search_reference may be local-only — the "dependency-free over stdio" claim suggests yes, but confirm), whether .mcp.json ends up committed with paths/secrets, and whether scaffold respects our file-write and review conventions.

Key questions to answer before any code is written

  1. Generator, runtime base layer, or both? Specifically: what does HasApiResponse plus the documented hooks/contracts/traits put in the request path?
  2. Does the scaffold MCP tool write files to disk, and can it be disabled or restricted to a sandbox path?
  3. Exactly which files does install-ai create or modify, and can the instruction blocks be scoped to a subdirectory rather than repo root?
  4. Does the MCP server perform any network I/O, telemetry, or outbound calls? Is read_reference / search_reference strictly local?
  5. How do the merged .mcp.json / .cursor/mcp.json / .vscode/mcp.json entries interact with servers we already register, and is merge behavior reversible?
  6. Laravel/PHP version constraints and multi-framework CI coverage (unchanged from prior assessment).
  7. Commit cadence and maintainer responsiveness over the last 12 months (unchanged).
  8. Does generated output remain plain, editable Laravel code we can eject, or does it depend on the runtime traits to function?

Integration Approach

Stack fit

Unchanged for the CRUD layer: reasonable only for greenfield, API-first Laravel services with conventional Laravel CRUD; poor for existing services with established base controllers, repository patterns, or non-standard authorization.

New and separable: the read-only MCP introspection (list_routes, describe_controller, model_info, get_config) plus the reference corpus is a plausible fit for our internal developer-tooling workstream — route/controller/model introspection is something we would otherwise script ourselves. Evaluate that track independently of the CRUD adoption decision. The scaffold tool should be treated as out of scope for any first trial.

Migration path

Still no migration path for existing endpoints, and none should be built. Keep this greenfield-only and bounded. The exit path for generated code remains clean if output is plain Laravel; the exit path for the AI integration is less clean, because installer-written instruction blocks and merged JSON configs will have been adopted by other developers and other tools by the time we decide to leave. Assume uninstall requires a documented cleanup checklist, and write that checklist before the pilot starts.

Compatibility

Pin an exact version and commit hash as before; do not float. Additionally: run install-ai only in a sandbox first and diff the resulting file tree against a clean checkout, so we know precisely what it touches. Treat the markdown skills/agent instructions as code — they go through review and version control like code, and they must not be able to silently change on a composer update.

Sequencing

  1. Source review (0.5 day) — answer questions 1, 2, 3, 4, 8. Read the service provider, the runtime entry points, Mcp/Inspector, and the installer's file-write paths.
  2. Split the decision. Track A: CRUD scaffolding (unchanged POC, ≤2 days, disposable service, 3–5 related resources with relationships, validation, policies, pagination). Track B: tooling-only trial — read-only MCP introspection and reference docs, sandbox repo, scaffold disabled.
  3. Config-hygiene spike (0.5 day, Track B only) — run install-ai in a scratch repo, capture the full file diff, verify idempotency by running it twice, and confirm whether existing Cursor/Copilot instructions survive a re-run.
  4. Vendor decision — if either track advances, fork internally and pin. Do not depend on upstream for anything load-bearing, and do not let upstream markdown drive agent behavior in our repos unreviewed.
  5. Single-team pilot — one new service, normal code review gate on all generated output, and an explicit rule that agent-produced scaffolds require human review before merge.
  6. Review gate at 30 days — boilerplate saved versus fork ownership cost, plus a separate check on whether the AI tooling actually improved onboarding or merely added a second configuration surface.

Operational Impact

Maintenance

Ownership transfer remains the dominant cost, and v3.1.0 increases it. We are now potentially maintaining, in addition to a fork of the CRUD package: an MCP server integration, a set of agent instruction blocks that other teams' tooling depends on, three JSON config files with merge semantics, and a documentation corpus that will drift from our internal conventions the moment we customize anything. Budget a named owner for the AI tooling files specifically — otherwise they become orphaned configuration that nobody dares delete and nobody remembers adding.

Support

No vendor, no commercial support, no community. Unchanged. The documentation-coverage test is a genuine improvement to self-supportability — it means we can read the references instead of the source for many questions — but it does not create an escalation path.

Scaling

If output is plain Laravel, runtime scaling impact is negligible; watch generated index/show actions for N+1s and unbounded result sets. The runtime traits now evidenced make this less certain: if HasApiResponse and the query-param layer sit in the request path, we inherit its query construction and response shaping across every generated endpoint, and tuning means forking. The MCP server is a per-developer stdio process — negligible scaling concern, but it is another local process each engineer runs with filesystem read access to the repo.

Failure modes

  • Package abandoned; the runtime layer blocks a Laravel major upgrade and forces a fork under time pressure.
  • Upstream instruction markdown changes agent behavior in our repos on a routine dependency bump, with no review — the highest-severity new failure mode.
  • install-ai clobbers or conflicts with existing Cursor/Copilot/AGENTS configuration; two teams end up with different effective agent instructions.
  • AI-generated scaffolds bypass the review gate and land code with inherited security defaults (mass assignment, filter/sort parameter handling) that nobody consciously chose.
  • Runtime/response coupling discovered late, after several services have adopted the traits.
  • Version/tag ambiguity from the prior release-metadata anomaly, now compounded by config-file version drift across teams.
  • Regeneration overwrites hand edits, unchanged.

Ramp-up

Low for Laravel-fluent developers — arguably lower than before, because the reference corpus is now real and test-verified, which removes the "we must write all documentation ourselves" burden for the core CRUD surface. The new burden is governance onboarding: a short, explicit policy on which files are generated, which are upstream-managed, which are ours, and that agent-authored scaffolds require human review. Keep that boundary explicit from the first commit; it is now a three-way boundary (ours / generated / upstream-managed AI config) rather than a two-way one.

Recommendation

Still "evaluate, don't adopt" as a production dependency, but the package is now worth two separate, time-boxed evaluations rather than one low-priority POC.

Approve: (a) the existing ≤2-day greenfield CRUD POC, now explicitly conditioned on confirming the extent of the runtime HasApiResponse / traits layer; and (b) a ≤1-day tooling-only trial of read-only MCP introspection plus the reference set, with scaffold disabled and the installer diffed in a sandbox. Do not introduce the package into existing services, do not let install-ai write to repo-root agent instruction files in shared repositories, and do not adopt either track without an internally owned fork and a named maintainer.

If the CRUD POC does not show a clear, measurable boilerplate reduction including validation and authorization, decline and revisit in two quarters. If the tooling trial shows the introspection tools are useful and the installer is cleanly reversible, it is reasonable to keep the read-only MCP surface as a developer-only convenience — but that is a decision about our tooling, not an endorsement of the package's request-path code.

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.
uni-method/symfony-lib
tacticmedia/scim-server-bundle
neika-ai/symfony-bundle
mattleads/agent-publishing-bundle
glavweb/framework-bundle
glavweb/extra-bundle
glavweb/api-bundle
glavweb/admin-bundle
adachsoft/api-version-bundle
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