Skip to content

This is a simple PHP MVC framework. It uses Composer and is designed to be very simple to use. Inspired by Laravel. Visit https://simplephp.kenstuddy.com to see a live demo of this project.

Notifications You must be signed in to change notification settings

kenstuddy/Simple-PHP-MVC-Framework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

95 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple-PHP-MVC-Framework

This is a simple PHP MVC framework. Made in 2017, it uses Composer and is designed to be very simple to use. Inspired by Laravel.

Requirements

  • PHP >= 7.3.0
  • MySQL >= 5.6.10
  • Composer

How to Install

Note: It is recommended that you install LAMP with my LAMP install script to ensure that you have all of the requirements.

My LAMP install script is located at

https://github.com/kenstuddy/Deploy-LAMP

Clone the repository

git clone https://github.com/kenstuddy/Simple-PHP-MVC-Framework

Change to the repository directory

cd Simple-PHP-MVC-Framework

Run composer to install any PHP dependencies

composer install

Change to the public directory

cd public

Start the PHP server (0.0.0.0 is the default route, this makes PHP listen on all IPv4 interfaces)

php -S 0.0.0.0:8000

Visit the IP address (127.0.0.1 if you are running Linux natively, or the IP address of your VM/VPS/etc) http://127.0.0.1:8000 in your web browser.

To run the included unit tests, make sure you are still in the public directory, and then type the following command

../vendor/bin/phpunit ../tests

About

This is a simple PHP MVC framework. It uses Composer and is designed to be very simple to use. Inspired by Laravel. Visit https://simplephp.kenstuddy.com to see a live demo of this project.

Resources

Stars

Watchers

Forks

Languages