SanderSander / composer-link

Adds ability to link local packages for development with composer
https://packagist.org/packages/sandersander/composer-link
Other
58 stars 3 forks source link

Wildcard support #27

Closed aftabnaveed closed 2 years ago

aftabnaveed commented 2 years ago

I am wondering if there is a wildcard support for symlinking packages. Let's say I have a folder php-packages/package1 and php-packages/package2 it would be nice if i can just enter a command composer link ../php-packages/* and it link all the packages in that folder. Is it something possible?

SanderSander commented 2 years ago

It's not supported yet but I think this would be doable, It should be limited to 1 directory depth, and check in those directories if it contains a package and link them.

I can imagine doing composer link ../* myself to link a bunch of packages belonging to a specific project. In that case my current directory should be skipped

SanderSander commented 2 years ago

This is now in the master branch :) and will be released in 0.3.0