$events --show june-php-meetup-autoroute-no-more-route-files
June PHP Meetup - AutoRoute: No More Route Files!
About
Regular-expression routers generally duplicate important information that can be found by reflection instead. Similarly, annotation-based routers place routing instructions in comments, often duplicating dynamic parameters that are already present in explicit method signatures. As such, these kinds of routing approaches may be considered a violation of the DRY principle.
In this talk, Paul will present an alternative to regex and annotation-based routers. AutoRoute eliminates the need for route definitions by automatically mapping the HTTP action class hierarchy to the HTTP method verb and URL path, reflecting on typehinted action method parameters to determine the dynamic portions of the URL. It is flexible, low maintenance, and fast -- even faster than FastRoute.
---
Nashville PHP is a community of PHP and Web developers serving the metro Nashville and Middle Tennessee areas. Everyone is welcome, no matter your skill level. Come learn with us!