PHP code example of gts / kata

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

    

gts / kata example snippets




use ProyectoPrueba\Controllers\UserController;

$router->get('/hola', [UserController::class, 'index']);
text
proyecto/
├── kata
├── public/
│   ├── index.php
│   ├── .htaccess
│   └── assets/
│       ├── css/
│       ├── js/
│       └── images/
├── web/
│   └── router.php
└── vendor/
bash
php kata make:controller UserController
text
src/Controllers/UserController.php
bash
php kata route get /hola UserController@index
text
web/router.php