Download the PHP package mohamedhekal/apiforge without Composer
On this page you can find all versions of the php package mohamedhekal/apiforge. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mohamedhekal/apiforge
More information about mohamedhekal/apiforge
Files in mohamedhekal/apiforge
Package apiforge
Short Description Laravel API kit: version negotiation, JSON envelopes, consistent error rendering, and route helpers
License MIT
Homepage https://github.com/mohamedhekal/apiforge
Informations about the package apiforge
ApiForge
Search terms: laravel, api, versioning, json, errors, rest, php, laravel-package, rest-api, api-errors, json-api.
Laravel API kit: version negotiation, JSON success/error envelopes, exception rendering, and Route::apiVersion() helpers.
Installation
Versioned routes
Middleware aliases: apiforge.version, apiforge.json.
Version can also come from X-API-Version or Accept: application/vnd.apiforge.v1+json.
Envelopes
Validation / auth / 404 exceptions under API routes render into the same shape.
Composition
Pair with mohamedhekal/oncegate for Idempotency-Key on mutating routes. Rate limiting stays Laravel’s throttle middleware.
Limitations (v0.1)
- No OpenAPI generator yet
- Does not replace Form Requests or API Resources—use them inside controllers as usual
- Unsupported requested versions fall back to default (not 406)
Testing
License
MIT
All versions of apiforge with dependencies
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/routing Version ^11.0|^12.0
illuminate/contracts Version ^11.0|^12.0
illuminate/validation Version ^11.0|^12.0