-
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…
-
Using UUID identifiers for databases in PHP projects with Doctrine
25 October 2015 —
Comments It's well known that using autoincrement identifiers for resources in a public API is not a very good idea, since you are exposing too much information about the size of your database and your business in general. The PHP community is recommending to better use UUIDs these days, because it hides tha…
-
My first approach to Zend Expressive
12 September 2015 —
Comments One of the trending topics in the PHP world nowadays is the one about microframeworks. It started some years ago with Slim and Silex, but recently it has been an explossion of new microframeworks. First, Slim's team announced the third version of its own framework, which implemented the psr-7 HTTP s…
-
Working with sub-namespaced modules in Zend Framework 2 the right way
14 August 2015 —
Comments About a year ago I wrote two articles discussing the best way to work with modules with sub-namespaces in Zend Framework 2. Here you can find Part 1 and Part 2 The solution provided in those articles was functional, but it introduced some new problems to deal with. It happens that after some time wo…
-
Emails in Zend Framework 2 with ZF2-AcMailer version 5
20 June 2015 —
Comments About a month ago I released the Zend Framework 2 module ZF2-AcMailer version 5.0.0. This new major version includes some important improvements, and a new configuration system that allows multiple mail services to be registered. When this module was on its first version, I wrote an article explaini…