Added PHP and extension requirements

It would be great to add the PHP requirements to composer.json. I am not 100% sure that the library requires PHP 5.4, however I took a guess and added it to the pull request. Also added a requirements o the libxml extension since the library uses DOMDocument.