PHPackages                             componenta/path-resolver - 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. componenta/path-resolver

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

componenta/path-resolver
========================

Project filesystem path resolver for Componenta applications

v1.0.0(1mo ago)0910MITPHPPHP ^8.4

Since Jun 16Pushed 1mo agoCompare

[ Source](https://github.com/componenta/path-resolver)[ Packagist](https://packagist.org/packages/componenta/path-resolver)[ RSS](/packages/componenta-path-resolver/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (10)

Componenta Path Resolver
========================

[](#componenta-path-resolver)

Project-root path resolver.

Use this package for resolving project files relative to a known base directory.

Installation
------------

[](#installation)

```
composer require componenta/path-resolver
```

Related Packages
----------------

[](#related-packages)

PackageWhy it matters here`componenta/app`Creates `PathResolver` in entry points and passes it into bootstrapping.`componenta/di`Can inject `PathResolverInterface` into services that calculate project paths.Path Resolver
-------------

[](#path-resolver)

```
use Componenta\Stdlib\PathResolver;

$paths = new PathResolver('/var/www/app');

$paths->baseDir;                         // "/var/www/app"
$paths->resolve('config/container.php'); // "/var/www/app/config/container.php"
```

`PathResolverInterface` exposes an immutable `baseDir` property and a single `resolve()` method.

Resolution Rules
----------------

[](#resolution-rules)

- Relative paths are resolved against `baseDir`.
- Absolute paths are normalized and returned as absolute paths.
- The resolver does not check that a file exists.
- The resolver does not create directories.

This keeps the package usable in entry points, config files, cache builders, and libraries that only need deterministic path calculation.

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance91

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity51

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

Unknown

Total

1

Last Release

43d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20490712?v=4)[Andrey Shelamkoff](/maintainers/Shelamkoff)[@Shelamkoff](https://github.com/Shelamkoff)

---

Top Contributors

[![Shelamkoff](https://avatars.githubusercontent.com/u/20490712?v=4)](https://github.com/Shelamkoff "Shelamkoff (1 commits)")

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/componenta-path-resolver/health.svg)

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

###  Alternatives

[norkunas/youtube-dl-php

youtube-dl / yt-dlp wrapper for php

514356.8k18](/packages/norkunas-youtube-dl-php)[theodo-evolution/legacy-wrapper-bundle

40124.9k](/packages/theodo-evolution-legacy-wrapper-bundle)

PHPackages © 2026

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