Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use composer without shell access #2684

Closed
taviroquai opened this issue Feb 9, 2014 · 1 comment
Closed

Use composer without shell access #2684

taviroquai opened this issue Feb 9, 2014 · 1 comment

Comments

@taviroquai
Copy link

Hi all,

I did a basic search on issues but did not found anything specifically like this.

I've been using composer for my basic needs but now I would like to use it without shell access.

I saw a description of how it can be used directly from PHP script in http://stackoverflow.com/questions/17219436/run-composer-with-a-php-script-in-browser

I did extract composer.phar and call Application::run() but I see from xdebug that its throwing a lot of exceptions (I'm not sure it its related to #1242). I can see that the repos are being downloaded but somehow my script is exiting at Application::run(). I tried to suppress some exceptions but it just exists my script.

I think this is very important because a lot of shared hosting plans does not offer shell access.

Any ideas? Thank you :)

@Seldaek
Copy link
Member

Seldaek commented Feb 13, 2014

You should call $app->setAutoExit(false) if you need to run things after run()

As for the exceptoins I'm not quite sure what they are since you didn't share much info.

@Seldaek Seldaek closed this as completed Feb 13, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants