PHP code example of refkinscallv / framework

1. Go to this page and download the library: Download refkinscallv/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/ */

    

refkinscallv / framework example snippets




use FW\Router\Route;

Route::register([
    __DIR__ ."/module/api"
]);

Route::set404(function() {
    echo "Custom Not Found Page";
});

Route::get("/", function() {
    echo "Hello World";
});

// Add more routes here
bash
   php fw build
   
bash
   php fw update
   
bash
   php fw serve