This script is WordPress router for PHP built-in web server.
This is the equivalent of Apache’s RewriteRules
in .htaccess file.
$ composer require piotrpress/wordpress-router
$ php -S localhost:80 vendor/piotrpress/wordpress-router/res/rewrite.php