Skip to content

imranpollob/my-php-mvc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my-php-mvc

A very simple mvc framework.

run

composer install

Copy and modify contents from .env.example to a new .env file.

Routing:

Router::put('test/@string', function ($var) {
    echo "a put request with parameter $var";
});

Router::get('users/@number', [
    'controller' => 'App\Controller\UserController@show'
]);

Available request methods: GET, POST, PUT, PATCH, DELETE