Download the PHP package lucite/route without Composer
On this page you can find all versions of the php package lucite/route. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package route
lucite/route
A simple library for mapping api routes to lucite models.
5 methods are provided to setup the following routes:
- GET
/url/
:->getMany()
- GET
/url/{id}
:->getOne()
- POST
/url/
:->create()
- PATCH
/url/{id}
:->update()
- DELETE
/url/{delete}
:->delete()
Each route returns a psr ResponseInterface with the following json structure in the body:
Installation
composer require lucite/route
Usage
Each route should define 2 static properties:
public static string $modelNamespace;
public static string $modelClass;
Note that $modelNamespace
is likely the same for all of your routes, so you may want to define this in a parent class that inherits from Lucite\Route\Route
, which in turn your final route classes inherit from.
Implementing permissions
Coming soon.
All versions of route with dependencies
PHP Build Version
Package Version
Requires
lucite/model Version
^0.0
psr/container Version ^2.0
psr/log Version ^3.0
psr/http-message Version ^2.0
psr/container Version ^2.0
psr/log Version ^3.0
psr/http-message Version ^2.0
The package lucite/route contains the following files
Loading the files please wait ....