PHP code example of mirko / t3customroutes

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

    

mirko / t3customroutes example snippets


class BlogController
{
    public function list(int $page)
    {
        return 'basic api route';
    }
}