-
Delay constructor execution by using ServiceManager lazy services
16 November 2018 —
Comments A couple years ago I wrote a post about how to improve PHP applications performance by using zend-servicemanager lazy services. In that article I explained how the ServiceManager takes advantage of the proxy design pattern to delay the creation of services, when they are marked as lazy. That can imp…
-
Mutation testing with infection in big PHP projects
17 February 2018 —
Comments There's no doubt that having tests in a project allows you to find potential bugs earlier and more easily. Lots of OSS projects require a minimum code coverage in order to accept new pull requests from contributors, and proprietary projects also tend to have some sort of continuous integration workf…
-
AcMailer 7.0, the most important release in a long time
09 December 2017 —
Comments A couple of hours ago I have released the seventh major version of a module I created more than 4 years ago. It was born as an abstraction to send emails in Zend Framework 2 applications, but trying to make the process simpler than directly working with the lower-level zend/mail component. I initia…
-
How to simulate a socket connection with AWS Simple Queue Service
26 November 2017 —
Comments At some point, any enterprise project will probably need a message queue. A message queue is used to publish information (usually known as messages) that a different "node" (usually known as worker) will consume in order to perform a specific action. It is frequently used in web applications to pass…
-
Properly passing data from outer layers of a PHP application to the use case layer
16 October 2017 —
Comments Update 2017-10-18: After reading this article, I recommend you to read the comment from Rasmus Schultz. It is very clarifying, and might make you think twice if this is really the best approach. Lately, I've been digging a lot in different ways of improving software architecture. Mainly subjects l…