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 Api Controller Laravel Package

phpsa/laravel-api-controller

phpsa/laravel-api-controller provides a reusable base controller for building RESTful APIs in Laravel. It simplifies common CRUD endpoints and standardizes JSON responses, reducing boilerplate so you can ship clean, consistent API controllers faster with less repetitive code.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • API authentication flexibility: v7.4.0 adds custom guard support in controllers and resources, enabling per-endpoint or per-resource authentication strategies without forking the package. This supports decisions around multi-tenant APIs, admin vs. customer-facing endpoints, and mixed-auth microservices.
  • Build vs. buy for API scaffolding: Reduces the need to build and maintain custom base controllers/resources when standard Laravel API patterns (CRUD, filtering, pagination, includes) are sufficient.
  • Roadmap sequencing: Low-risk feature addition; can be adopted incrementally in existing API layers. No breaking changes, so no migration sprint required.
  • Use case validation: Strong fit for teams standardizing REST API controllers across multiple guards (e.g., api, admin, tenant) without duplicating authorization logic.

When to Consider This Package

  • Adopt when: You are building or maintaining Laravel REST APIs with repetitive controller/resource boilerplate; you need consistent request handling, filtering, sorting, pagination, or resource transformation; and you require flexible auth guard selection per endpoint or resource.
  • Look elsewhere when: You need GraphQL or non-REST paradigms; your API logic is highly custom or domain-heavy beyond standard CRUD patterns; you already use a broader API platform (e.g., API Platform, Lumen-based microservices) with conflicting abstractions; or you require zero third-party dependencies in the API layer.
  • Risk check: v7.4.0 is additive and non-breaking. Confirm your Laravel version compatibility and that the custom guard feature aligns with your existing auth configuration.

How to Pitch It (Stakeholders)

  • Executives: This package reduces API development time by standardizing controller and resource patterns, and v7.4.0 adds flexible authentication guard support—important for multi-tenant and role-segmented APIs—without breaking existing functionality. Low adoption risk and active maintenance.
  • Engineering: v7.4.0 introduces custom guard support in controllers and resources via a small, focused PR. No deprecations or breaking changes. Adopt incrementally where standard Laravel API scaffolding is beneficial; avoid if your API layer is highly custom or already standardized on a competing abstraction.
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.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core