Update generate.php

add pretty print for composer.json
Merge pull request #1 from ondrejhlavacek/master

Update generate.php