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 Rest Laravel Package

sanchescom/laravel-rest

Sanchescom Laravel REST is a Laravel package that streamlines building RESTful APIs with convenient routing, controller, request-handling, and JSON response helpers for cleaner, more consistent API development.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

  • Architecture fit: The package extends Laravel’s Eloquent model to consume external REST APIs as if they were local models. It fits applications that need to integrate third-party APIs into a Laravel domain model, especially where teams already use Eloquent. Supported response shapes include page/offset/cursor pagination, bare arrays, common envelopes (data, results, hydra:member), JSON:API, GraphQL, JSON-RPC, and some non-REST APIs. However, documented limitations—totals in response headers, repeated query params for membership filters, non-standard detail paths ({endpoint}/{id}), and errors returned inside HTTP 200—mean it cannot express several common API patterns without custom work. The known TypeError on positional array responses further narrows architectural fit for APIs like OpenSky or Dog CEO.
  • Integration feasibility: As a Composer package for Laravel, integration is straightforward. The 1.6.1 release’s live verification against 62 real APIs (470 scenarios, each feature confirmed on at least three APIs) substantially reduces integration uncertainty. The nightly verification workflow and published coverage matrix give concrete evidence of real-world behavior. Feasibility is high for APIs that match supported shapes; lower for APIs that hit documented limitations.
  • Technical risk: Moderate. The 1.6.1 release contains no runtime changes, so risk to existing users is low. For new adoption, the known bug—positional array rows reach Model::fill() with integer keys and raise a raw TypeError from isFillable(string $key) on a well-formed HTTP 200—is a production risk. The inability to handle header-based totals, repeated query params, non-standard detail paths, and errors inside HTTP 200 may require workarounds or custom clients. The verification suite is a strong risk mitigator for regressions.
  • Key questions: Which Laravel and PHP versions are supported? How are authentication, rate limiting, retries, and caching handled? What is the extension mechanism for unsupported API shapes? What is the support policy and release cadence? When will the positional array bug be fixed in 1.7? Does the package provide typed exceptions for all failure modes?

Integration Approach

  • Stack fit: Strong for Laravel applications using Eloquent, as the package maps API resources to models. Developers already familiar with Eloquent will find the paradigm natural. Fit is lower for non-Laravel PHP projects or applications that do not use Eloquent.
  • Migration path: Adopt incrementally. Start by running the live verification catalog against your target APIs (composer live:catalog && composer live:report) to identify supported patterns and limitations. Pilot on a non-critical endpoint with a simple response shape. Replace custom API clients gradually. Avoid migrating APIs that rely on unsupported shapes—header totals, repeated query params, non-standard detail paths, or errors inside HTTP 200—until roadmap items are addressed.
  • Compatibility: Verify composer.json for Laravel and PHP version constraints. Confirm compatibility with existing HTTP client middleware and authentication mechanisms. The release notes do not specify supported Laravel versions, so this must be checked before adoption.
  • Sequencing: 1) Evaluate against your API catalog using the provided live verification commands. 2) Integrate a single, simple API to validate developer experience and error handling. 3) Expand to APIs with supported pagination and envelope patterns. 4) Implement a typed exception wrapper or defensive handling for the positional array bug. 5) Track 1.7 for fixes to documented limitations.

Operational Impact

  • Maintenance: The package is actively maintained with a nightly live-verification workflow, public roadmap, and detailed documentation (docs/capabilities.md, docs/live-verification.md). This reduces maintenance risk. However, as a third-party dependency, you must track releases and roadmap progress, especially for the known bug and limitations.
  • Support: Community-driven support via GitHub issues is implied. No commercial support is mentioned. For enterprise use, assess the maintainer’s responsiveness and consider contributing fixes or sponsoring.
  • Scaling: The package makes HTTP calls to external APIs, so scaling is bounded by those APIs’ rate limits and latency. You will likely need to add caching, retries, and circuit breakers at the application layer. The package does not appear to handle rate limiting or retries natively, so plan for operational tooling.
  • Failure modes: External API timeouts and 429s are acknowledged as skip in verification, but the package’s runtime behavior for these is unclear. The known TypeError on positional arrays can crash requests. Errors returned inside HTTP 200 are a documented limitation, meaning the package may treat error payloads as success—a significant operational risk. Implement defensive error handling and monitoring.
  • Ramp-up: Low for Laravel developers familiar with Eloquent. The model-like interface and documentation ease onboarding. Teams should review documented limitations and the known bug before adoption. Expect a few days for a pilot and knowledge transfer.
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.
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
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
microsoft/fluentui-system-icons
mmccook/php-json-canonicalization-scheme
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console