A lightweight starter template for PHP projects using MVC architecture. It includes routing, views, controllers, PDO-based models, autoloading, and configuration system.
git clone https://github.com/poddfonarem/php-mvc-starter.git my-project
cd my-project
composer install
cp .env.example .env
php -S localhost:8000 -t public
You must set up your database separately before running the application.
- Install and start MYSQL.
- Create a database (e.g.,
phpmvc
). - Update your
.env
file with the correct DB credentials: