PHP Routing v0.2.2
Routing version 0.2.2 released August 24, 2009
Routing is a PHP-based URL routes system similar in nature to Python Routes. Routing is still in its infancy and lacks a lot of features. It's in a mostly usable state right now; if you're feeling adventurous, feel free to grab the code. This version stabilizes the current featureset and reduces surprises.
Obtaining Routing
Right now, you have a couple of options. You can grab them using WebDAV (point your WebDAV-compatible client to http://svn.destrealm.org/Routing) or you can download them from here. I have a couple of different archives available:
- destrealm_routing-0.2.2.zip (~12K)
- destrealm_routing-0.2.2.tar.gz (~8.4K)
- destrealm_routing-0.2.2.tar.bz2 (~7.7K)
View the ChangeLog if you're curious.
New in v0.2.1
This version corrects a bug in the routing preference scoring where static routes with a single component were considered of equal or lesser weight to routes with more components. A route like /users would be less likely to match than a route specified as /users/{*username} even if the request URI were /users. This fix now grants higher preference to the least number of matching components.
New in v0.2
Several bugs have been addressed and some slight modifications have been made to the Routing internals. I was considering releasing this as v0.1.1 but the changes were enough (in my mind) to warrant bumping the minor version. I expect to make one more overhaul of the internal API in v0.3 followed by a structural revision (mostly to reduce the line count and amount of code) by v0.4. One of these versions will also be used to address currently outstanding (but yet unproven) bugs.
Documentation
The Routing documentation is still a work in progress. However, you can read the tutorial here.
Don't forget that you can browse the source code online.
