Express-like PHP router

Launched Monday, November 8th, 2021
This was an attempt to mimic Express router in PHP. The final product offers a router that accepts GET and POST requests. It was built with PHP..

About the project

This was an attempt to mimic Express router in PHP. The outcome went pretty well, resembling a lot the "Original" Express.

The final product offers a router that accepts GET and POST requests.

This project is actually kind of small, and wasn't tested a lot, so there is still a lot more room to improve.

I'm aware that there are classes for managing requests and responses, but I wanted to build everything from scratch.

Features

This package offers a simple and standardized way to declare routes, accepting GET and POST parameters.

Back-end

The router is based on two main classes: Router and Response. Router receives and manages routes. Response is used to send data back to the client.

Technologies

Inspirations