Upgrade Guide PHP Version Requirement Breaking changes to Slim\App constructor Removed App Settings Changes to Container Changes to Routing components New Middleware Approach ...
Upgrade Guide New PHP version Class \Slim\Slim renamed \Slim\App New Route Function Signature Request and response objects are no longer accessible via the Application object G...
Defaults Defaults These are the default hooks always invoked in a Slim application. slim.before This hook is invoked before the Slim application is run and before output buff...
404 Errors Set not found handler Invoke not found handler 404 Errors It is an inevitability that someone will request a page that does not exist. The Slim application lets yo...
Modes What is a mode? How do I set the application mode? Use an environment variable Use application setting Default mode Configure for a Specific Mode Modes It is common...
How to use Example Middleware Add Middleware How to use Use the Slim application’s add() instance method to add new middleware to a Slim application. New middleware willsurr...
Names Names Slim lets you assign a name to a route. Naming a route enables you to dynamically generate URLs using the urlForhelper method. When you use the Slim application’s u...