salihtopcu / biblio-php-rest
Biblio PHP-Rest is a basic substructure for PHP Rest services.
Requires
- php: ^7.1
This package is auto-updated.
Last update: 2026-02-16 07:30:14 UTC
README
Biblio PHP-Rest is a basic substructure for PHP Rest services.
http/Session
Session is an abstract class that should be the parent class of the main instance of the rest service. So the rest service project should define a CustomizedSession class and an instance that created from this class. Biblio recognizes every request-response lifetimes as a session.
A Session must have a RequestHandler and a ResponseBuilder.
http/RequestHandler
RequestHandler is an abstract class either like Session. The rest service project must define a RequestHandler class too. By the way you must know api module files path to be able to redirect requests to related api methods.
http/ResponseBuilder
ResponseBuilder is the class that defines the instance that Session must have one and Session can send responses via this instance.
P.S.: You can see the relation of these 3 classes in the visual structure