Loading a Composer package from a local directory.

composer.json entry

"repositories": [
    {
        "type": "path",
        "url": "../../packages/my-package",
        "options": {
            "symlink": false
        }
    }
]

Options

symlink - if set to false then the package will be mirrored (rather than symlinked).

(for more options read the Official docs)

Commands

Add repositories entry:

composer config repositories.my_package path ../../packages/my_package

Add package:

composer require me/my_package