Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/borisklco/php-htmx.mvc-url.shortener
custom MVC - generating shorter URL links, QR codes, and storing statistics
https://github.com/borisklco/php-htmx.mvc-url.shortener
htmx mvc php sql
Last synced: 1 day ago
JSON representation
custom MVC - generating shorter URL links, QR codes, and storing statistics
- Host: GitHub
- URL: https://github.com/borisklco/php-htmx.mvc-url.shortener
- Owner: BorisKlco
- Created: 2024-07-31T17:21:13.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-08-18T14:17:16.000Z (6 months ago)
- Last Synced: 2024-12-03T08:09:38.970Z (about 2 months ago)
- Topics: htmx, mvc, php, sql
- Language: PHP
- Homepage: https://url.tricksofthe.trade/
- Size: 293 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# php/htmx custom MVC and router
This project provides a site for generating shorter URL links, QR codes, and storing statistics such as clicks and visit times.
- Routes are defined in `public/index.php`, with support for undefined routes resulting in a 404/error response.
- The response sent to the client will include an HTTP status code and a view.
- Responses can either send a partial update for HTMX swapping or render a full page linked by a template and view.
- Controllers in `app/Controller/*` extend `Response.php`, defining the response with a status code and view.
- `app/Helper.php` and `app/DB.php` handle database calls and custom functions for controllers.
- `app/path.php` defines paths to directories/folders.