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 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

Installation via composer.json vs "composer create-project"

Go to End

4 Posts   4789 Views


Community Member, 2 Posts

5 January 2014 at 4:23am

Edited: 05/01/2014 4:27am

I am having trouble setting up silverstripe via a package definition provided via package.json.

When installing via composer create-project silverstripe/installer ./my/website/folder (as outlined in the doc) the subdirectory ./mysite including the _config.php gets created, whereas when installing via composer install using the package definition, the ./mysite folder won't get created.

I have tried including silverstripe/installer in the package defintion but that does not resolve the issue.

Here's my current package.json:

    "name": "silverstripe/installer",
    "description": "The SilverStripe Framework Installer",
    "require": {
        "silverstripe/cms": "3.1.0",
        "silverstripe/framework": "3.1.0",
        "silverstripe-themes/simple": "*",
        "stage1/docker-php": "@dev"

    "require-dev": {
        "silverstripe/compass": "*",
        "silverstripe/docsviewer": "*",
    "minimum-stability": "dev"

Maybe someone could help me understand when and how to use which installation method (i.e. package.json vs composer create-project).


Forum Moderator, 801 Posts

4 February 2014 at 10:12am

Are you sure you want a package.json file? That's only used to describe a package in its entirety, including all version data. Usually that's provided by, you don't need one yourself. You should create your own composer.json in the root of your project, and can use the silverstripe/installer one as a starting point:


Community Member, 2 Posts

4 February 2014 at 10:44am

Ingo, thank you for replying.
Where I said package.json I actually meant composer.json. Sorry for the mixup.
My quesion still stands though. :)


Forum Moderator, 801 Posts

4 February 2014 at 11:39am

Can you please post your composer.json (or put it on