PHPackages                             fruit/pathkit - 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. fruit/pathkit

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

fruit/pathkit
=============

swiss knife to filesystem path

1.2.1(7y ago)03.7k↓50%11PHP

Since Oct 23Pushed 7y ago1 watchersCompare

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

READMEChangelogDependencies (6)Versions (7)Used By (1)

PathKit
=======

[](#pathkit)

This package is part of Fruit Framework.

PathKit is set of tools handling path in filesystem.

[![Build Status](https://camo.githubusercontent.com/20e6b4f2e4e5f13a2d793f1dc0561ff0a979795f967a2f9c8cd6aa037855c2b5/68747470733a2f2f7472617669732d63692e6f72672f526f6e6d692f66727569742d706174686b69742e737667)](https://travis-ci.org/Ronmi/fruit-pathkit)

Synopsis
--------

[](#synopsis)

```
// let's say if current working directory is /work/temp
$path = new Path('../my.file'); // path is '../my.file'
$path->isAbsolute(); // false
$path->expand(); // /work/temp/../my.file
$path->normalize(); // /work/my.file
$path->within(); // false, because /work/my.file does not belong to /work/temp
$path->within('/work'); // true
$path->relative(); // ../my.file
$path->relative('/another/work'); // ../../work/my.file
```

License
-------

[](#license)

Any version of MIT, GPL or LGPL.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 97% 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 ~228 days

Recently: every ~205 days

Total

6

Last Release

2717d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1ef743a4ba2b41bc6643ca3c4d71f4608abee7dc617efa09b18e3fa0a44aeda8?d=identicon)[Ronmi](/maintainers/Ronmi)

---

Top Contributors

[![Ronmi](https://avatars.githubusercontent.com/u/59556?v=4)](https://github.com/Ronmi "Ronmi (32 commits)")[![rulatir](https://avatars.githubusercontent.com/u/677694?v=4)](https://github.com/rulatir "rulatir (1 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/fruit-pathkit/health.svg)

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

###  Alternatives

[nebkam/symfony-traits

Helper trait to ease writing APIs in Symfony

156.7k](/packages/nebkam-symfony-traits)

PHPackages © 2026

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