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)11858.4k↓10.9%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 1mo ago

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 86% 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

4022d 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)
```

###  Alternatives

[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[google/cloud-storage

Cloud Storage Client for PHP

34390.8M125](/packages/google-cloud-storage)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[superbalist/flysystem-google-storage

Flysystem adapter for Google Cloud Storage

26320.6M30](/packages/superbalist-flysystem-google-storage)[creocoder/yii2-flysystem

The flysystem extension for the Yii framework

2931.7M62](/packages/creocoder-yii2-flysystem)[flowjs/flow-php-server

PHP library for handling chunk uploads. Works with flow.js html5 file uploads.

2451.6M15](/packages/flowjs-flow-php-server)

PHPackages © 2026

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