Skip to main content
  1. Tags/

Php

2016


Password complexity and blacklist in Symfony (optionally with FOSUserBundle)

·3 mins
Password strength is a more and more important subject for (web) applications. I guess we have all read at least one time about user accounts got hijacked because the user used a password like ‘1234567890’ and ‘qwerty’. As developer, we can prevent this pretty easy by adding validation on the user password.

Robo PHP - A modern task runner

·4 mins
At work, I am responsible for version management and releasing software. The process of releasing a new version is always the same: creating a change log, adding this to the documentation and in GIT, update the version number, etc. etc. etc. This set me thinking, can I automate this process? And can I do that with my favorite language PHP? Yes I can, with Robo PHP!

Test your Doctrine2 metadata mapping configuration

·2 mins
I use the Doctrine2 Object Relational Mapper as abstraction layer between my model and database. I use PHPUnit to unit test my code, but if the configuration is incorrect the code won’t work like intended and the Doctrine2 ORM will fail with exceptions as result. To ensure the configuration is correct I created a test to validate my configuration.

2015


HOWTO: Quick start to the Silex microframework

·4 mins
How to start with the Silex microframework and what is the best folder structure for my new micro project? Edwin Kortman (also known as Dreadwin) created a Silex boilerplate repository based on a blog post by Matthias Noback in 2012 to quickly setup a new Silex project and I’m really excited about it!

Introduction to StashPHP

·3 mins
Stash is a PHP library and makes it easy to cache the results of expensive code, like database queries or external API calls, in a hierarchical way with interchangeable back ends.