KRouter
routing
KRouter | routing | |
---|---|---|
1 | 3 | |
5 | 7,542 | |
- | 0.2% | |
0.0 | 7.6 | |
over 2 years ago | 3 days 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.
routing
-
olvlvl/composer-attribute-collector v1.2.0
Packages that support attributes for configuration need to roll out their own attribute collector for PHP doesn't provide a feature to query the entire code base for attributes. For example, here's one of the classes that deal with attributes for symfony/routing: https://github.com/symfony/routing/blob/6.2/Loader/AnnotationClassLoader.php. That's what this plugin offers: "a convenient and near zero-cost way to retrieve targets of PHP 8 attributes.". If you're not the maintainer of a package that deals with attributes you probably don't need that.
-
Piko router, a lightweight and blazing fast router for PHP
To demonstrate this search efficiency, I wrote some benchmark tests to compare Piko router against Fastroute and Symfony Router which are references in their domain.
-
Trying to Learn MVC for Laravel but kind of not sold on it , can someone explain/help?
- Symfony's Router
What are some alternatives?
Fast Route - Fast request router for PHP
clean-code-php - :bathtub: Clean Code concepts adapted for PHP
slim4-skeleton - A Slim 4 Skeleton
router - Router implementation for fasthttp
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.
dispatch - a tiny library for quick and easy PHP apps
http-kernel - Provides a structured process for converting a Request into a Response
learning-oop-in-php - A collection of resources to learn object-oriented programming and related concepts for PHP developers.
ajax-router - URL query string-based routing library that is PSR-7 compatible.
adr - Action-Domain-Responder: a web-specific alternative to Model-View-Controller.
matchit - A high performance, zero-copy URL router.
process - Executes commands in sub-processes