PHP code example of femtopixel / nano-framework

1. Go to this page and download the library: Download femtopixel/nano-framework library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

femtopixel / nano-framework example snippets



 = new \Nano\Framework();
$nano->dispatch();


$nano = new \Nano\Framework();
$nano->setParameterMatching()->dispatch();


namespace \Project\Controller;

class MyAwesomeController
{
    public function getHelloAction($age, $name)
    {
        echo "Hello $name, I'm {$age}yo"; //please, use this code for test only
    }
}