Skip to content

Simple router usage with PHP7.4, Docker, Nginx and Postgres

License

Notifications You must be signed in to change notification settings

mathleite/simple-php-router

Repository files navigation

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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy