ecxod/router

Langweilige Router für das Ecxod Projekt

Maintainers

Details

github.com/ecxod/router

Source

Issues

Installs: 20

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/ecxod/router

1.0.5 2024-11-26 02:21 UTC

This package is auto-updated.

Last update: 2025-09-26 04:09:27 UTC


README

Router for Ecxod Projects

php composer.phar require nikic/fast-route

cat .htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]

cat src/konst/K.php (example)

const ROUTEN = [
      'root' =>         ['pfad' => '/',                 'name' => 'Index',        'proto' => ['GET']],
      'register' =>     ['pfad' => '/register.php',     'name' => 'Register',     'proto' => ['GET', 'POST']],
      'authenticate' => ['pfad' => '/authenticate.php', 'name' => 'Authenticate', 'proto' => ['GET']],
];