How to use How to use A callable is assigned to a hook using the Slim application’s hook() method: <? php $app = new \Slim\Slim (); $app -> hook ( 'the.hook.name' , ...
Application Application Configuration Retrieving Settings Updating Settings Slim Default Settings Application The Application, (or Slim\App ) is the entry point to your Sli...
Dependency Container How to use the container Required services Dependency Container Slim uses a dependency container to prepare, manage, and inject applicationdependencies. ...
404 Not Found Handler Default Not Found handler Custom Not Found handler 404 Not Found Handler If your Slim Framework application does not have a route that matches the curre...
500 Errors Set custom error handler Invoke custom error handler 500 Errors You may use the Slim application’s error() method to specify a custom error handler to be invoked ...
Overview Overview Each Slim application instance has one response object. The response object is an abstraction of your Slim application’sHTTP response that is returned to the ...
Router How to create routes GET Route POST Route PUT Route DELETE Route OPTIONS Route PATCH Route Any Route Custom Route Route callbacks Writing content to the response C...
A Slim application provides built-in support for HTTP caching using ETags. An ETag is a unique identifier for aresource URI. When an ETag header is set with the Slim applica...