Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

BitExpert Blog:
Using Prophiler with zend-expressive
Dec 16, 2015 @ 16:27:02

On the latest post on the BitExpert blog Stephan Hochdörfer has a post about using the Prophiler tool with a Zend Expressive application to add simple profiling and metric output to your application. Zend Expressive is the latest framework release from Zend that makes heavy use of middleware and interoperable components to make a simple, lightweight framework.

A few weeks back we released a Prophiler PSR-7 middleware which we created during a hack session on Adroit, our little, clever ADR middleware implementation. I`d like to show you how to integrate the Prophiler middleware in a zend-expressive application. As it turns out this is super simple.

The post includes the code you'll need to implement the middleware as a part of the execution flow in the Expressive request handling. It also includes the simple Factory class you'll need to hook into the middleware system to return a new Profiler middleware instance.

tagged: prophiler zendexpressive framework middleware psr7 example

Link: https://blog.bitexpert.de/blog/using-prophiler-with-zend-expressive/


Trending Topics: