Skip to content

Newbie question re contributing to statamic/cms #4564

Answered by jasonvarga
jensolafkoch asked this question in Q&A
Discussion options

You must be logged in to vote

We'll be adding a more in depth article to the docs on how to do all this.

You don't need to change the name in your fork's composer.json.
You should continue to require statamic/cms.

Adding the repositories to your app's composer.json to point to your local fork should be enough.
You might need to add canonical: false.

"repositories": [
    {
        "type": "path",
        "url": "/path/to/cms",
        "canonical": false
    }
]

Once you've added the repositories, you can do composer require "statamic/cms 3.2.x-dev"

The 3.2.x-dev part corresponds to the branch you have checked out.
If it's numeric, like 3.2, you have to do 3.2.x-dev.
If it's a word, like mybranch (or feature/mybranch) …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jensolafkoch
Comment options

Answer selected by jensolafkoch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants