https://github.com/fredtux/php-mvc-skeleton
Skeleton for simple PHP MVC
https://github.com/fredtux/php-mvc-skeleton
autoload docker mvc php skeleton
Last synced: about 1 month ago
JSON representation
Skeleton for simple PHP MVC
- Host: GitHub
- URL: https://github.com/fredtux/php-mvc-skeleton
- Owner: fredtux
- License: mit
- Created: 2021-06-07T12:31:11.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2021-06-07T12:43:40.000Z (about 5 years ago)
- Last Synced: 2025-07-09T19:19:34.848Z (12 months ago)
- Topics: autoload, docker, mvc, php, skeleton
- Language: PHP
- Homepage:
- Size: 34.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Simple MVC skeleton for PHP development
Just use ```docker-compose up``` and you're ready to code
# Example
In order to understand how the autoload works, just follow the example for the main page, it goes through all the required steps.
# Naming
Use the namespace ```myproject``` or change it to your own.
Files will be named using this convention:
1. Controller -> ```NameCotroller```
2. Model -> ```NameModel```
3. View -> ```NameView```
The view will load a page from ```public/html```
# Paths
All paths are defined in ```config.php```
# Docker
In order to better understand the docker code, look at this repository [https://github.com/fredtux/sitepoint-docker-tutorial](https://github.com/fredtux/sitepoint-docker-tutorial)