Symfony2's ControllerNameParser.php as an individual file to include in your own custom Framework.