Alejandro Celaya | Blog

Software development, agile methodologies and open source software.

category Archive — "php"

— 2014 —

Configure multiple database connections in Doctrine with Zend Framework 2

There are many situations where you need multiple database connections in your application. In this post I am going to explain how to configure a connection to 2 databases to be used by Doctrine in Zend Framework 2 and how to configure a master-slave connection. Both examples will be using MySQL. Le…

Send emails in a Zend Framework 2 application using ZF2-AcMailer module

Some time ago I created a Zend Framework 2 module designed to wrap Zend\Mail and ease sending emails in a Zend Framework 2 application. I was copy-pasting the code of that module in many applications so I decided it was a good candidate to become an independent module. After creating it I pushed it …

Introduction to PHP unit testing with PHPUnit

Nowadays we are in the era of agile methodologies. One of the best practices promoted by these methodologies is Test-Driven Development (TDD) It mainly consists on preparing small pieces of code that are responsible for testing parts of the real application. For this purpose each of the main program…


Older postsNewer posts