osbre/composer-local-packages

Composer plugin to easy add packages for local development

dev-master 2019-12-11 15:27 UTC

This package is auto-updated.

Last update: 2024-11-12 02:18:10 UTC


README

composer global require osbre/composer-local-packages:dev-master

Usage

Inside your project, run this command

composer local ../path-to-local-package

The composer.json file will now look like this:

{
    "require": {
        ...
        "local-package/for-development": "dev-master"
    },
    "repositories": [
        {
            "type": "path",
            "version": "dev-master",
            "url": "/Users/you/local-package-for-development"
        }
    ],
    ...
}

TODO

  • Write tests
  • Add two commands composer local require {path}, and composer local remove {path}
  • Add third parameter - custom package version

Contributing

Pull-requests are welcome :D