Adding composer install option flag

Make it simpler for php developers to include 'composer.json' in
generators by adding a composer flag (default: false , backward
compatible) in options for installDependencies .