composer-prefer-local

When a package is available in a sibling or sub-directory, use that instead of Packagist or other configured repos.

Downloads
15
Stars
1

Bot releases are visible (Hide)

composer-prefer-local - v0.1.4 Latest Release

Published by BrianHenryIE 4 months ago

  • Use RepositoryManager::prependRepository() rather than ::addRepository() to prioritise
  • Improve output to only print required packages which are found, plus a count of other projects which might be used
composer-prefer-local - v0.1.3

Published by BrianHenryIE 5 months ago

  • Previous version only worked with direct required packages. This works for all packages and sub-packages.

Full Changelog: https://github.com/BrianHenryIE/composer-prefer-local/compare/0.1.2...0.1.3

composer-prefer-local - v0.1.2

Published by BrianHenryIE 5 months ago

I was checking for the "name" property of a json_decoded composer.json before I'd actually read and decoded the file!

Full Changelog: https://github.com/BrianHenryIE/composer-prefer-local/compare/0.1.1...0.1.2

composer-prefer-local - v0.1.1

Published by BrianHenryIE 5 months ago

Fix:

In PreferLocalPackagesPlugin.php line 52:
                              
  Undefined array key "name"  

I think there must be a composer.json in one of my 374 directories which doesn't have a name field.

composer-prefer-local - v0.1.0

Published by BrianHenryIE 5 months ago

Initial release.

Package Rankings
Top 46.87% on Packagist.org
Related Projects