2017 © Pedro Peláez
 

composer-plugin composer-localoader-plugin

Composer plugin to load some dependencies locally

image

rdx/composer-localoader-plugin

Composer plugin to load some dependencies locally

  • Sunday, October 29, 2017
  • by rudiedirkx
  • Repository
  • 1 Watchers
  • 2 Stars
  • 62 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Localoader

Localoader adds a binary locaload with which you can choose to load dependencies locally instead of using the Packagist version. This is especially useful when developing your own packages, or others, in an existing project or context., (*1)

N.B. You still have to composer require the dependency!, (*2)

Install

composer global require rdx/composer-localoader-plugin

Use it

Alias an entire package:, (*3)

locaload alias author/some-package /var/www/dev/packages/author-some-package

Argument 1 is the Composer package name: author/some-package., (*4)

Argument 2 is the location of your checkout of that package: /var/www/dev/packages/author-some-package., (*5)

This will create and maintain a symlink from Composer's vendor dir to your dev checkout., (*6)

Check it

To see which packages are 'localoaded':, (*7)

locaload list

Output will be something like:, (*8)

Currently loading:
Array
(
    [alias] => Array
        (
            [author/some-package] => /var/www/dev/packages/author-some-package
        )
)

Deprecation warning

This package used to load namespaces locally, without symlink, but that didn't include all of Composer's "autoload" properties. Your composer.locaload might have psr-0 or psr-4 config. Remove that, and replace it with alias., (*9)

The Versions

29/10 2017

dev-master

9999999-dev

Composer plugin to load some dependencies locally

  Sources   Download

MIT

The Requires

 

29/10 2017

1.0

1.0.0.0

Composer plugin to load some dependencies locally

  Sources   Download

MIT

The Requires