-
Dispatch REST-like requests with a single controller class in Zend Expressive
24 June 2016 —
Comments I was digging into Zend Expressive and how to use controllers that allow me to share dependencies between different routes, instead of having to use different middlewares every time. Abdul wrote a great article on this subject that you can find here, which also became part of Expressive's cookbook s…
-
Using ServiceManager 3 lazy services to improve your PHP application performance
12 June 2016 —
Comments Performance is an important subject when a project grows. There are some good practices that make projects more maintainable, like dependency injection, however, creating all the objects at the beginning of the request could reduce the application performance. If some of the created objects are not …
-
Improving Zend\ServiceManager workflow with annotations
09 April 2016 —
Comments Everyone who regularly visits my blog knows that I'm an absolute fan of the Zend\ServiceManager component. It is always my choice to deal with dependency injection in any kind of project, more now that v3 has been released, which is faster and has a better public API. The workflow while working with…
-
How to properly implement persistent login
09 February 2016 —
Comments I'm sure you are familiar with those "remember me" checkboxes in login forms. They are a common way to allow a user to keep his/her session in a web application for an extended period of time when he is in a trusted computer. One could think that it is a small and easy-to-implement feature, but it h…
-
Improve dependency injection in PHP apps with Zend Framework plugin managers
31 December 2015 —
Comments I have spoken many times at this blog about dependency injection, and how the ZF2 ServiceManager is one of the best tools to solve it. You can read these related articles to know more: How to properly use the Zend framework 2 service manager as a dependency injection container Advanced usage of Ser…