Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mohammadmahditaheri/smashedfly
a simple php framework
https://github.com/mohammadmahditaheri/smashedfly
framework php php-framework
Last synced: 5 days ago
JSON representation
a simple php framework
- Host: GitHub
- URL: https://github.com/mohammadmahditaheri/smashedfly
- Owner: mohammadmahditaheri
- Created: 2023-07-10T19:50:00.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-10T21:26:35.000Z (over 1 year ago)
- Last Synced: 2024-09-24T20:07:21.054Z (about 2 months ago)
- Topics: framework, php, php-framework
- Language: PHP
- Homepage:
- Size: 15.6 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SmashedFly
a simple and tiny HTTP framework for phpThe framework is consisted of these parts and features:
## Front-end Controller
This simple framework implements Front-end Controller pattern like most famous frameworks by having single index.php file that all requests can touch nothing but this file.## HTTP Kernel
Inside the body of index.php, it instantiates
a kernel in a singleton way to access its handle method
which in this case accepts a request and delivers a response## Request
provides an easy-to-follow, object-oriented layer on top of request## Response
provides an intuitive object-oriented way for interacting with the actual response being delivered and sent to client## Routing & Controllers
handles routing in a fast manner powered by FastRoute.
It also includes controllers and the actual route is being dispatched to the chosen method of the controller.... I may continue developing this tiny framework.
`
This project is made for fun, and It's NOT suitable for production.
`
## Credits
inside this project the HTTP Foundation by Symfony is being used. for developing I used var-dumper by Symfony which is hugely useful in debugging.
And also for routing, FastRoute by N.Popov is the actual routing engine under the hood.*© Mohammad Mahdi Taheri - July 2023*