Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 934 Bytes

README.md

File metadata and controls

42 lines (34 loc) · 934 Bytes

Simple PHP Router

Workflow badge

SETUP
Nginx PHP8 Docker

Start app

  • Build Docker containers

    docker-compose up --build -d
    
  • Install Composer dependencies

    docker exec -it php composer install
    

Create your own routes

app/Route/index.php

$route->registry('/greet', \App\Greet\GreetController::class, 'index');

Where:

  • /user is the route that you want to register;
  • \App\Greet\GreetController::class is the Controller namespace;
  • index is a controller function