PHP 5.3.3+ refactoring

php <= 5.3.28 is no longer supported and composer as dependency management tool become very popular and useful so the code was refactored for this goals.