salihtopcu/biblio-php-rest

Biblio PHP-Rest is a basic substructure for PHP Rest services.

Installs: 6

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/salihtopcu/biblio-php-rest

1.0.1 2020-06-11 18:42 UTC

This package is auto-updated.

Last update: 2025-12-16 07:15:00 UTC


README

Biblio PHP-Rest is a basic substructure for PHP Rest services.

Visual Structure

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