Use composer on comandline

From semantic-mediawiki.org
Edited by 2 users.
Last edit: 20:52, 8 January 2014

This is related to Installation. On my WINDOWS 2003 Server using

C:\MYPATH\maintenance>php composer.phar require mediawiki/semantic-media-wiki "1.9.*,>=1.9.0.1"
Could not open input file: composer.phar

C:\MYPATH\maintenance>

did not work. But

composer require mediawiki/semantic-media-wiki "1.9.*,>=1.9.0.1"

did the job. Composer was installed the INSTALLER way as told here. http://getcomposer.org/doc/00-intro.md#installation-windows

14:38, 8 January 2014

Either one can only install Composer on Windows globally (most likely as it looks in this case) or you installed Composer on Windows globally. Yeah, in this case you must drop the php and .phar particles from the command. It is possible to install Composer on e.g. on Linux globally too but the installation manual is indended too which is probably the best way if you have more than one wiki on your machine. The docu is indended to be as basic as possible. That's why I did not want to confuse people with even more steps.

Good anyway that you pointed this out for others.

20:52, 8 January 2014
 

Adding a little note about this will not hurt, so that's what I just have done. Thanks for the pointer.

21:21, 8 January 2014