Apify is a small open source library that delivers new levels of developer productivity by simplifying the creation of RESTful architectures. It helps development teams deliver quality web services and applications in reduced amounts of time. If you are familiar with the Zend Framework, then you already know how to use Apify.
The router is doing string comparison to find out the right Controller and Function.
Example there are 20 controller and 20 functions the worst case scenario might be 400 loop to find out the right Method. This is too costly.