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

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

spol/path
=========

A PHP library for manipulating paths.

v0.1.3(11y ago)21.7kMITPHPPHP &gt;=5.2

Since Jan 19Pushed 11y ago1 watchersCompare

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

READMEChangelog (1)Dependencies (2)Versions (5)Used By (0)

Path by [@spol](https://twitter.com/spol)
=========================================

[](#path-by-spol)

Path is a simple library for manipulating strings containing filesystem paths.

Installation
============

[](#installation)

Through composer:

```
{
    "require": {
        "spol/path": "0.1.*"
    }
}
```

Usage
=====

[](#usage)

There are two concrete implementations of the Spol\\Path\\AbstractPath class, Spol\\Path\\UnixPath and Spol\\Path\\WindowsPath. Both provide the same interface, but handle directory separators and drive letters differently.

The `Spol\Path\Path` class provides a static facade to the appropriate class for the current system. Alternatively, either class can be used directly, such as for working with paths for a different system.

```
Path::normalize('/usr/local/../bin')    // '/usr/bin'
```

To Be Completed.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~130 days

Total

4

Last Release

4105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cbc57b7ce1d3c88e6b9ad5d2537bbd5a63f71cd8d80f708c69d29a21c728380?d=identicon)[spol](/maintainers/spol)

---

Top Contributors

[![spol](https://avatars.githubusercontent.com/u/186264?v=4)](https://github.com/spol "spol (2 commits)")[![morrelinko](https://avatars.githubusercontent.com/u/2414096?v=4)](https://github.com/morrelinko "morrelinko (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[doublesecretagency/craft-upvote

Lets your users upvote/downvote, "like", or favorite any type of element.

1634.6k](/packages/doublesecretagency-craft-upvote)[usamamuneerchaudhary/country-city-state

Country City State Data Provider for Laravel 12+

242.6k](/packages/usamamuneerchaudhary-country-city-state)

PHPackages © 2026

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