Skip to content

Instantly share code, notes, and snippets.

@windbridges
Last active January 2, 2021 02:17
Show Gist options
  • Save windbridges/11936438905d18d7154d56d14ade64f3 to your computer and use it in GitHub Desktop.
Save windbridges/11936438905d18d7154d56d14ade64f3 to your computer and use it in GitHub Desktop.
Adding local package to composer for parallel development

Documentation: https://github.com/franzliedke/studio

Quick guide:

  1. Install Studio if not installed:
$ composer global require franzl/studio
  1. Tell to Studio which package you want to use locally by specifying it's path (package name is taken automatically):
$ studio load path/to/world-domination
  1. Add package requirement to composer.json manually (composer require will not work at least your package is not published yet):
"require": {
    "my/world-domination": "dev-master"
}
  1. And finally, tell Studio to set up the symlinks:
$ composer update my/world-domination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment