The title is a little vague, I believe. But my english's not good, so I'm lacking of an better one.
I'm currenty writing a tool that also executes the composer.phar from the source code.
So when installing some stuff with composer.phar it sometimes asks questions and wants additional input, like desired format or simples Y/N questions.
When I use exec() it seems that it's not possible to react to those questions.
So I wondered how I can achieve this with PHP.
Any ideas?
Update To show an simple example, I do this:
exec("php /Users/johannesklauss/Development/web/composer.phar create-project symfony/framework-standard-edition /Users/johannesklauss/Development/web/Symfony 2.1.x-dev");
Problem here is that the composer at the and asks if it should keep the version control history:
Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]?
So I need to type in y
or n
to the console. But that's not possible with exec. So I need some interactive mode or what.