M
M
Maxim Grechushnikov2015-12-30 00:54:29
PHP
Maxim Grechushnikov, 2015-12-30 00:54:29

Is it possible to run composer from a php script?

Composer is written in php for php. Is it possible to run composer from a script?
I know that you can run it using system / exec. But on some hostings this function is not allowed.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
index0h, 2015-12-30
@index0h

I'm afraid this won't make much sense. Composer does not include VCS like git, hg, svn, they use the system ones. So running with require phar://composer.phar/ and emulating console input won't really save you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question