Update PHP version check and travis composer setup
Imporoved example