sensorario/ruotino-di-scorta

v0.0.6 2023-07-20 22:08 UTC

This package is auto-updated.

Last update: 2024-04-20 23:37:30 UTC


README

Create the project

composer create-project sensorario/ruotino-di-scorta

Update config/routes.php

<?php return [
    '/' => App\HomeController::class
];

Create the controller

<?php
namespace App;
class HomeController implements Command
{
    public function get($c)
    {
        $c->setResponse([
            'It' => 'works!!',
        ]);
    }
}

Run php built-in server

php -S localhost:8888 -t public

and then navigate into http://localhost:8888