Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

[solved] installing modules with composer


Go to End


2 Posts   1296 Views

Avatar
Bruce B

Community Member, 164 Posts

14 January 2015 at 3:30pm

I am running a Mac using its native PHP/MySQL (as opposed to MAMP) with multiple SilverStripewebsites as my development environment. Until now I have avoided Composer and relied on downloading and installing files manually.

Attempting to install Omnipay and its dependencies meant that I finally had to deal with Composer. I successfully loaded a new SS install to my desired folder but the

Composer require
command does not seem to have an option for target directory so Omnipay would only install to the user root level. I can then move the files but it makes Composer pretty useless as a maintenance option.

Am I missing something?

Avatar
Bruce B

Community Member, 164 Posts

14 January 2015 at 5:25pm

Looks like the thing I was missing was the need to change directories in Terminal before issuing the command.
I can now run require commands and run the composer update command after editing the site-wide composer.json file. If I go back now and edit that file to include previously installed components, composer may actually be useful!

If some kind person could edit the composer installation documentation to clarify what's needed, that would be wonderful. Otherwise, I may have to see if I can do that myself.

cheers
bruce