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

Rest Api Bundle Laravel Package

riddle/rest-api-bundle

A Symfony bundle for building REST APIs, giving you a structured foundation for controllers, request handling, and JSON responses. It helps you expose resources quickly, keep endpoints consistent, and cut boilerplate so your API stays clean and maintainable across your Symfony application.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Build vs. buy for REST scaffolding — and the honest answer is "neither, yet." The decision this package informs isn't "do we adopt it?" (answer: no). It's "how do we standardize our API layer?" A package with zero stars, zero dependents, no maintenance signal, and a framework mismatch is not a viable buy, and it's too thin to justify a strategic build. Use it as evidence that the real decision is which foundation we standardize on — API Platform or native Laravel API Resources — not this bundle.
  • Framework standardization and migration sequencing. Despite being filed under "Laravel/PHP," this is a Symfony bundle. For any portfolio consolidating on Laravel, it's an immediate non-starter and should be logged as such so future evaluation cycles don't re-litigate it. For teams still carrying Symfony services, it's a data point on the cost of that carry.
  • Dependency governance and adoption criteria. This is the most valuable product outcome: a concrete cautionary example for a minimum bar (maintenance cadence, adoption, license, security policy, framework fit, test coverage). Turning one bad evaluation into a reusable intake checklist is a high-leverage, low-cost process improvement.
  • API roadmap sequencing and contract-first planning. If a public or partner API is on the roadmap, this raises the right question early — do we standardize envelopes, versioning, and error formats now, or defer behind an API gateway/API Platform decision? Getting that shape agreed before endpoint sprawl is the real roadmap item.
  • Risk register entry (supply-chain and bus-factor). No stars, no dependents, no visible maintenance, no license/security posture visible. Adoption would transfer ownership and CVS triage to us on day one. Documenting it as rejected with reasoning keeps the risk register honest and defensible.
  • Legitimate (narrow) use cases. Internal tooling, prototypes, spikes, or throwaway services where replacement cost is near zero and no customer SLA depends on it. Even then, treat it as a reference implementation to copy from, not a dependency to install.

Decision-log bottom line: do not adopt as a production dependency. Record it as a pattern reference and a governance example.

When to Consider This Package

Consider it only when all of the following hold:

  • You are genuinely on Symfony (2.x/3.x era, verified against composer.json). It has no Laravel integration path — no service provider, no facade, no package discovery.
  • The work is prototype, spike, or internal-only, with a documented replacement or vendoring plan before any customer-facing exposure.
  • You have read the source and are prepared to fork and maintain it in-house — i.e., you're evaluating it as a code sample, not a dependency.
  • Scope is genuinely small: a handful of endpoints where a thin wrapper beats standing up API Platform, FOSRestBundle, or Symfony Serializer + routing conventions.
  • You have confirmed license, last commit date, open issues, PHP/Symfony version constraints, and whether tests exist — and none is a red flag.

Look elsewhere when:

  • You're on Laravel — use native API Resources, Form Requests, route model binding, Sanctum/Passport, and the exception handler. There is no gap to fill and no meaningful incremental capability.
  • You're on modern Symfony and need a real REST layer — API Platform is the ecosystem default (JSON-LD, OpenAPI, admin UI); FOSRestBundle or Symfony Serializer + custom normalizers are viable alternatives. All have active maintenance this package does not.
  • You need security review, CVE tracking, or an SLA — no stars, no dependents, no downstream eyes. You will be the sole reviewer of any vulnerability.
  • You need long-term support — there is no visible maintainer commitment, release cadence, or issue triage.
  • You need OpenAPI/contract-first, auth, rate limiting, or versioning — this is not that package.

Diligence checklist before any consideration: confirm framework type (symfony-bundle vs Laravel), last commit, open issue count, license, PHP/Symfony constraints, transitive dependencies, and test/CI presence. Any red flag ends the evaluation; default to build-native.

How to Pitch It (Stakeholders)

For executives (30 seconds):

We evaluated an open-source PHP package for building REST APIs. It's a Symfony bundle, not a Laravel package — a fundamental mismatch with our stack — and it has zero community adoption: no stars, no dependent projects, no maintenance signal. My recommendation is not to adopt it in production. Integration cost is low, but the ongoing risk (unpatched security issues, no support, single point of failure, and we'd own the code on day one) is not worth it. Our native framework tooling covers the same ground. No budget impact — this is a decision to not spend engineering time here. The real deliverable is a reusable dependency-intake bar and a clear "build-native" default for our API layer.

For engineering leadership:

riddle/rest-api-bundle is a Symfony bundle offering generic REST helpers. Three disqualifiers: (1) framework mismatch — it plugs into Symfony's kernel and DI container with no equivalent seam in Laravel; (2) adoption risk — 0 stars, 0 dependents, 0 score means no external review, no battle-testing, no maintenance cadence; (3) no license/security posture visible, so any adoption is a fork-and-maintain commitment. Recommendation: reference only. Standardize on API Platform (Symfony) or native Laravel API Resources. Use this case to formalize intake criteria — maintenance activity, adoption, license, security policy, framework fit, tests — so we stop spending cycles on one-off evaluations.

For engineering teams (the ask):

Don't add this to composer.json. If a pattern in it is useful — a response envelope, an exception-to-JSON listener, request body parsing — copy the idea and own it. That's a few hours with JsonResource, FormRequest, and App\Exceptions\Handler, and it keeps our dependency tree clean. If you believe there's a genuine gap this fills, bring a short write-up comparing it to API Platform and native framework features, including who would maintain the fork, and we'll revisit.

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