szepeviktor / package-path
Get installation path of any Composer package.
Installs: 449
Dependents: 1
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 1
Open Issues: 0
pkg:composer/szepeviktor/package-path
Requires
- php: ^7.1 || ^8.0
- composer-plugin-api: ^2.0
Requires (Dev)
- phpstan/phpstan: ^0.12.26
This package is auto-updated.
Last update: 2025-09-13 18:03:26 UTC
README
Get full installation path of any Composer package.
Installation
composer require szepeviktor/package-path
Usage
/** @var string|null $packagePath */ $packagePath = \SzepeViktor\Composer\PackagePath::get('phpstan/phpstan'); $vendorPath = \SzepeViktor\Composer\PackagePath::getVendorPath(); // returns "/full/path/to/vendor"