PHPackages                             grandt/relativepath - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. grandt/relativepath

ActiveLibrary[File &amp; Storage](/categories/file-storage)

grandt/relativepath
===================

A class for cleaning up/collapsing relative paths. Like real\_path, but without the need for the path to exist on the filesystem.

1.0.2(11y ago)11916.9k—5.6%4[1 issues](https://github.com/Grandt/PHPRelativePath/issues)[3 PRs](https://github.com/Grandt/PHPRelativePath/pulls)10LGPL-2.1PHPPHP &gt;=5.0

Since Aug 7Pushed 6y ago3 watchersCompare

[ Source](https://github.com/Grandt/PHPRelativePath)[ Packagist](https://packagist.org/packages/grandt/relativepath)[ Docs](https://github.com/Grandt/PHPRelativePath)[ RSS](/packages/grandt-relativepath/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)DependenciesVersions (4)Used By (10)

Relative Path
=============

[](#relative-path)

Simply put, it's a tool to help clean up and collapse relative paths the same way real\_path does it. Except that unlike real\_path, relativePath does not look for the path on the filesystem.

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity46

Moderate usage in the ecosystem

Community19

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~139 days

Total

3

Last Release

4068d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/617ced39b5ad622d3e86329053bfa3749718e8597b2fcb8137cb40b796b8604a?d=identicon)[Grandt](/maintainers/Grandt)

---

Top Contributors

[![Grandt](https://avatars.githubusercontent.com/u/1094427?v=4)](https://github.com/Grandt "Grandt (2 commits)")

---

Tags

file path

### Embed Badge

![Health badge](/badges/grandt-relativepath/health.svg)

```
[![Health](https://phpackages.com/badges/grandt-relativepath/health.svg)](https://phpackages.com/packages/grandt-relativepath)
```

PHPackages © 2026

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