router
routing
Our great sponsors
router | routing | |
---|---|---|
3 | 3 | |
433 | 7,540 | |
3.5% | 0.4% | |
6.3 | 7.7 | |
about 2 months ago | 10 days ago | |
Go | PHP | |
BSD 3-clause "New" or "Revised" 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.
router
-
Piko router, a lightweight and blazing fast router for PHP
I found libraries in other programming languages that use this approach : matchit (Rust), find-my-way (Javascript), fasthttp (Go) But, curiously, no one in PHP. That's why I decided to bring my contribution to have the same approach in PHP.
-
Go and Trie!
You can dive deeper if you wish.
-
Have you used a trie in Go?
https://github.com/fasthttp/router for example
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?
matchit - A high performance, zero-copy URL router.
Fast Route - Fast request router for PHP
gods - GoDS (Go Data Structures) - Sets, Lists, Stacks, Maps, Trees, Queues, and much more
clean-code-php - :bathtub: Clean Code concepts adapted for PHP
freerouting - Advanced PCB auto-router
slim4-skeleton - A Slim 4 Skeleton
gowww/router - ⚡️ A lightning fast HTTP router
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.
router - A lightweight and fast router for PHP
dispatch - a tiny library for quick and easy PHP apps
go-patricia - A generic patricia trie (also called radix tree) implemented in Go (Golang)
http-kernel - Provides a structured process for converting a Request into a Response