Creating the hnDependencyInjectionPlugin

On Thursday 28th of August the hnDependencyInjectionPlugin was released on GitHub and packagist. Unfortunately I’ve been too busy to write this blog post about it since. When I got an e-mail yesterday about a new stargazer*, I decided it was time to blog about creating the hnDependencyInjectionPlugin. So, what does this plugin do? It’s a […]

Composer post-checkout hook in git

One of the main advantages of developing with scriptable tooling is that they sometimes give you nice presents. While doing some research for a future article, I came across a composer post-checkout hook. The picture below displays very nicely how this works. When you change branches there is a chance that you have different dependencies, […]

PHP ecosystem evolving

A lot of nice stuff is happening in the PHP ecosystem right now. In this case I’m not talking about the PHP 5.5 RC3 that was released lately, since that will take a bit more time to be released, let alone be available for the world to use. I’m talking about the Symfony 2.3 release, […]

Validation annotations in Symfony2

The Symfony2 form component has a very nice way of validating: using annotations. These validation annotations give you the ability to annotate one or more invariants in the documentation of the properties of your class. These are automatically read and validated! Talking about up-to-date documentation. You can describe invariants like this in your entities: Since […]

Merging arrays in PHP

A short story about merging arrays in PHP. When merging two arrays you’ll probably look at array_merge first. These two sentences in the docs say the following: If the input arrays have the same string keys, then the later value for that key will overwrite the previous one. Values in the input array with numeric […]

Composer API limit at GitHub

When using Composer for your dependency management, and getting some of those dependencies from GitHub, there is a risk that you run out of Composer API limit at GitHub. Since 14 Oktober 2012 GitHub limits unauthenticated requests. By default Composer does not use authentication, and if you exceed this limit you will be blocked for […]