Skip to content

ribafs/php-micro-framework

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🏢 Micro-Framework

A simple MVC framework for study using PHP.

Project

  • Status: Done ✅

🛠 Technologies

The following technologies were used to build this project.

How to use

Install the dependencies

composer install

Start the server

php -S localhost:8000

Creating the database table

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
);

Start the server

php -S localhost:8000/register.php

✈️ Router

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'
        ];

📧 Author:

yantenorio64@gmail.com

About

A simple MVC framework for study in PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 50.0%
  • Hack 50.0%