A simple MVC framework for study using PHP.
- Status: Done โ
The following technologies were used to build this project.
composer install
php -S localhost:8000
You can create a users table for this example.
CREATE TABLE users (
id int PRIMARY KEY,
name varchar(100) NOT NULL,
email varchar(90) NOT NULL,
password varchar(61) NOT NULL
);
php -S localhost:8000/register.php
The router.php file is where the routes are
Inside of initRoutes function you can create new routes if you need.
$router['routename'] = [
'route' => '/url',
'controller' => 'controller',
'action' => 'index'
];