Skip to content

relaxdd/php-rest-api-router

Repository files navigation

php-rest-api-router

required php version 7.4 and higher

This is not the final version of the router, there are no endpoints for post requests and most likely a lot more

For Apache add .htaccess

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.+)$ index.php?$1 [L,QSA]

For Nginx add in config

    try_files $uri $uri/ /index.php?$args;

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages