PHP code example of axm / framework

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

    

axm / framework example snippets




use Axm\Http\Router as Route;

Route::get('/', function () {
  echo '<h1>Hola Mundo</h1>';
});

Route::get('/home', App\Controllers\HomeController::class);

bash
php axm serve
bash
php -S localhost:8000