Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
composer use local directory

Add the following snippet to ~/.composer/config.json:

{
  "repositories": [
        {
            "type": "path",
            "url": "/path/to/package",
            "options": {
                "versions": {
                    "owner/repo": "3.1.10"
                },
                "symlink": false
            }
        }
    ]
}

versions is optional and can be used to replace a specific package version when required. symlink can be set to true or false depending on what's required when developing.

References:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment