KRouter
Klein
KRouter | Klein | |
---|---|---|
1 | 1 | |
5 | 2,654 | |
- | -0.0% | |
0.0 | 0.0 | |
over 2 years ago | 3 months ago | |
PHP | PHP | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
KRouter
-
A little router for vanilla projects
here you create a reflection object from get_declared_classes which returns ANY class which has been defined. The only reason this works at all is because it looks like you recommend to use include 'FooController.php' before running this code, as classes are defined at the point at which they are needed, and not before. This is unbelievably inefficient. Running PHP from my command line that's already almost 200 classes before you've defined anything. Yes you filter it later, but you've already hit the inefficiency. Reflection isn't free.
Klein
What are some alternatives?
Fast Route - Fast request router for PHP
AltoRouter - PHP routing class. Lightweight yet flexible. Supports REST, dynamic and reversed routing.
php-mvc - A simple PHP model-view-controller framework, built step-by-step as part of the "Write PHP like a pro: build an MVC framework from scratch" course on Udemy.
Route - Fast PSR-7 based routing and dispatch component including PSR-15 middleware, built on top of FastRoute.
Aura.Router - A web router implementation for PHP.
Pux - Pux is a fast PHP Router and includes out-of-box controller tools
clean-code-php - :bathtub: Clean Code concepts adapted for PHP
learning-oop-in-php - A collection of resources to learn object-oriented programming and related concepts for PHP developers.
Croute - Convention based routing for PHP
http-router - :tada: Release 2.0 is released! Very fast HTTP router for PHP 7.1+ based on PSR-7 and PSR-15 with support for annotations/attributes and OpenAPI (Swagger) Specification
slim4-skeleton - A Slim 4 Skeleton
SwitchRoute - Generate a PHP script for faster routing :rocket: