Merge pull request #3 from anezi/php-version

Support recent versions of PHP and remove the dead version 5.2
Merge pull request #7 from anezi/master

Merge pull request #3 from anezi/php-version