Skip to content

Instantly share code, notes, and snippets.

@yusufhm
Created March 28, 2022 06:48
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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