PHPackages                             szepeviktor/package-path - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. szepeviktor/package-path

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

szepeviktor/package-path
========================

Get installation path of any Composer package.

v0.3.0(5y ago)2508↓50%11MITPHPPHP ^7.1 || ^8.0

Since Nov 7Pushed 4y ago1 watchersCompare

[ Source](https://github.com/szepeviktor/package-path)[ Packagist](https://packagist.org/packages/szepeviktor/package-path)[ RSS](/packages/szepeviktor-package-path/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (1)

Package Path finder
===================

[](#package-path-finder)

[![Build Status](https://camo.githubusercontent.com/d3c277a47156ba064dfd699bdc1915c8ee7ce248175d0062c88ceff21c38edf1/68747470733a2f2f7472617669732d63692e636f6d2f737a65706576696b746f722f7061636b6167652d706174682e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/github/szepeviktor/package-path)[![Packagist Version](https://camo.githubusercontent.com/f7a2f4bc617bcce08bd2d0fc453cd23ef9fe68c728dea0fcff5e1f235293cd32/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f737a65706576696b746f722f7061636b6167652d70617468)](https://packagist.org/packages/szepeviktor/package-path)[![PHPStan](https://camo.githubusercontent.com/c961f520ec74aa0d9e60565e511aebb1c4930b5a0ea635e9be3e99bf562be287/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5048505374616e2d656e61626c65642d323339393232)](https://phpstan.org/)

Get full installation path of any Composer package.

### Installation

[](#installation)

```
composer require szepeviktor/package-path
```

### Usage

[](#usage)

```
/** @var string|null $packagePath */
$packagePath = \SzepeViktor\Composer\PackagePath::get('phpstan/phpstan');

$vendorPath = \SzepeViktor\Composer\PackagePath::getVendorPath();
// returns "/full/path/to/vendor"
```

### Credits

[](#credits)

[David Vander Elst](https://github.com/david-vde)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

2014d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/135d8104cdf926e2b15b6a06413153a9582729f0cd48ccba7bc7e62878a39781?d=identicon)[szepeviktor](/maintainers/szepeviktor)

---

Top Contributors

[![szepeviktor](https://avatars.githubusercontent.com/u/952007?v=4)](https://github.com/szepeviktor "szepeviktor (20 commits)")

---

Tags

composerinstall-pathpackagepathcomposerpackageinstall-path

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/szepeviktor-package-path/health.svg)

```
[![Health](https://phpackages.com/badges/szepeviktor-package-path/health.svg)](https://phpackages.com/packages/szepeviktor-package-path)
```

###  Alternatives

[jean85/pretty-package-versions

A library to get pretty versions strings of installed dependencies

1.3k289.5M63](/packages/jean85-pretty-package-versions)[fxp/composer-asset-plugin

NPM/Bower Dependency Manager for Composer

8894.8M41](/packages/fxp-composer-asset-plugin)[composer/satis

Simple Repository Generator

3.3k1.4M17](/packages/composer-satis)[foxy/foxy

Fast, reliable, and secure NPM/Yarn/pnpm bridge for Composer

177287.5k25](/packages/foxy-foxy)[netojose/laravel-bootstrap-4-forms

Bootstrap 4 form builder for Laravel 5

182115.3k](/packages/netojose-laravel-bootstrap-4-forms)[cpx/cpx

Run any command from any composer package, even if it's not installed in your project.

40410.9k1](/packages/cpx-cpx)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
