Download the PHP package hostkurd/flocms-api without Composer
On this page you can find all versions of the php package hostkurd/flocms-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download hostkurd/flocms-api
More information about hostkurd/flocms-api
Files in hostkurd/flocms-api
Download hostkurd/flocms-api
More information about hostkurd/flocms-api
Files in hostkurd/flocms-api
Vendor hostkurd
Package flocms-api
Short Description Optional modern API runtime for Flo Framework: explicit routing, middleware, JSON errors, CORS, authentication contracts, and rate limiting.
License MIT
Package flocms-api
Short Description Optional modern API runtime for Flo Framework: explicit routing, middleware, JSON errors, CORS, authentication contracts, and rate limiting.
License MIT
Please rate this library. Is it a good library?
Informations about the package flocms-api
Flo Framework API
hostkurd/flocms-api is the optional API runtime for Flo Framework. It depends
on hostkurd/flocms-core and provides explicit, method-aware routing instead of
the legacy api_<action> convention.
Features
- routes constrained by HTTP method, with named parameters and automatic 405 responses;
- route groups, names, middleware, and module ownership;
- a middleware pipeline with CORS, JSON-body validation, security headers, authentication, and rate limiting;
- consistent JSON envelopes and production-safe exception rendering;
- request IDs on successful and failed responses;
- dependency-injected controllers and route handlers;
- route loading from the application's
api/directory and enabled module manifests; - trusted-proxy-aware client IP resolution;
- non-terminating
Responseobjects, making controllers testable.
Minimal setup
Place application route registration in api/routes.php. A route file returns
a closure:
Module route files are declared in module.php:
The route loader marks every route from that file with its owning module. Requests to a disabled or outdated module receive a 404 without constructing the controller.
All versions of flocms-api with dependencies
PHP Build Version
Package Version
The package hostkurd/flocms-api contains the following files
Loading the files please wait ...