Permalink
d2eb173 Sep 3, 2016
28 lines (20 sloc) 906 Bytes

ONE PHP Micro Framework Documentation

Just 2 simple class to help you develop easy and fast websites and webservices for webs 2.0 and allow you to create your own microframework easily.

Table of contents:

1- Folder structure
2- Routing
3- Controllers
4- Views
5- More

Simplest example:

    //index.php file
    require_once('src/OnePHP/one_framework.php');
    $app = new \OnePHP\App();

    $app->get('/',function() use ($app){//Action
        echo 'Hello world';
    });
    $app->listen();
Contribute and improve this documentation.
Click Edit and Fork the project.