Bump php requirement in composer.json to 5.4.0

The use of traits means composer.json needs to have a requirement of php 5.4.0 or higher.