Skip to content

salihtopcu/biblio-php-rest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

biblio-php-rest

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

About

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

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages