Yii2 extension for Doctrine and MongoDb

In my job, I was trying to use the MongoDB with the default Active Record from the Yii2, but briefly, I had struggled with too many issues and missing documents, so, I gave a u-turn and decided to use the Doctrine instead, this is the outcome, my first package for packagist.org =), although a simple but a quite useful one.



Using fragment cache with ESI

First of all, what’s ESI? If you are familiar with cache approaches, you may have heard about it. The ESI or Edge Side Includes is a small markup language for edge level dynamic web content assembly with the purpose to solve the following problem, e.g.:

A web page has some dynamic components that always change, on the other hand, others static parts of the same page barely are modified like the footer or header, what kind of cache strategy we can use? When you are using reverse cache also known as gateway cache in your application or web servers like Apache or Nginx at this context, this sort of cache will be useless, because in every request will be necessary to refresh the cache system to show the dynamic content because the cache works for the whole page. On this sample, the cache layer will be only an extra step to increase the latency. So, how to solve that problem?



Three years after the ZCPE exam

Three years ago I took the ZCPE (Zend Certified PHP Engineer) exam about the PHP 5.5 (Recently the new version of the exam was released, this one is about the PHP 7). It was a milestone in my career, and I can perfectly remember the two months before it, when I studied so hard, even dreaming about it. … 


Setting the Yii test environment

Have you decided to write tests for your Yii project? Awesome, this post will be useful for you =D
I’ve started to work with Yii recently, and I have to be honest that is not my favourite PHP framework, Symfony is on the top my list, but we can’t ignore one aspect so important for the software cycle life because of personal preferences.
If you have tried to write tests for the Yii using mock objects for active record model you will probably find yourself that isn’t an easy task. This guide has the mission to help you to set up your test environment; this doc is using the Yii 1.0 documentation as support to configure the test environment, below you can figure out how to start from scratch to write unit and functional tests for this or anything else projects using Yii.



Hello world!

Hi everyone, I’m Bruno Borges as you can probably see from looking at website’s URL. Well, it isn’t an easy task to keep a blog running. Inspiration, time to write and other things usually increase the difficulty. Actually, this is my second attempt. Many years ago I had built a blog using the free hosting service from wordpress.com. It is never too late to try again and I have to be honest, this will be an even bigger challenge than before, because I’ve decided to write only in English which is not my main language, reason for this, is to improve my English writing skills, so, please be patient with me.