Body Body Use the request object’s getBody() method to fetch the raw HTTP request body sent by the HTTP client. This isparticularly useful for Slim application’s that consume ...
Content Length Middleware Usage Content Length Middleware The Content Length Middleware will automatically append a Content-Length header to the response. This is to replace ...
Groups Groups Slim lets you group related routes. This is helpful when you find yourself repeating the same URL segmentsfor multiple routes. This is best explained with an exam...
DELETE Method Override DELETE Use the Slim application’s delete() method to map a callback function to a resource URI that is requested withthe HTTP DELETE method. <? php ...
Parameters Wildcard route parameters Optional route parameters Parameters You can embed parameters into route resource URIs. In this example, I have two parameters in myroute...
Output Buffering Middleware Usage Output Buffering Middleware The Output Buffering Middleware enables you to switch between two modes of output buffering: APPEND (default) an...
PSR-7 and Value Objects Value objects PSR-7 and Value Objects Slim supports PSR-7 interfaces forits Request and Response objects. This makes Slim flexible because it canuse a...
Setting up CORS The simple solution Access-Control-Allow-Methods Setting up CORS CORS - Cross origin resource sharing A good flowchart for implementing CORS support Referenc...