PHPackages                             timostamm/pathinfo - 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. timostamm/pathinfo

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

timostamm/pathinfo
==================

An object to manipulate filesystem paths with a fluid interface

v2.0.1(7mo ago)01.9k12AGPL-3.0PHPPHP ^8.0CI failing

Since Sep 12Pushed 4w ago2 watchersCompare

[ Source](https://github.com/timostamm/pathinfo)[ Packagist](https://packagist.org/packages/timostamm/pathinfo)[ RSS](/packages/timostamm-pathinfo/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (4)Dependencies (1)Versions (7)Used By (2)

PHP Pathinfo
============

[](#php-pathinfo)

[![build](https://github.com/timostamm/pathinfo/workflows/CI/badge.svg)](https://github.com/timostamm/pathinfo/actions?query=workflow:%22CI%22)[![Packagist PHP Version](https://camo.githubusercontent.com/b9c7558627717a2303614af2c01ee0d15b87df0d4199e0b1175bbe8510cdd5e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f74696d6f7374616d6d2f70617468696e666f2f706870)](https://camo.githubusercontent.com/b9c7558627717a2303614af2c01ee0d15b87df0d4199e0b1175bbe8510cdd5e0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646570656e64656e63792d762f74696d6f7374616d6d2f70617468696e666f2f706870)[![GitHub tag](https://camo.githubusercontent.com/2bc5fdb91d54d2d17bae7eea943f819fa77800b620120f21e6a8fcf534aeb8f7/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f74696d6f7374616d6d2f70617468696e666f3f696e636c7564655f70726572656c65617365733d26736f72743d73656d76657226636f6c6f723d626c7565)](https://github.com/timostamm/pathinfo/releases/)[![License](https://camo.githubusercontent.com/d6bc2b26794002c24d023acaab01b6dbb953c57ab9cb80ba5b8aa2f2bd5de99a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d626c7565)](#license)

An object to manipulate filesystem paths with a fluid interface.

#### Example

[](#example)

```
$root = Path::info('/var/wwwroot/index.html');

$root->equals('/foo/../var/root/index.html'); // -> true
$root->isIn('/var/wwwroot/'); // -> true
$root->isAbsolute(); // -> true

$root->dirname(); // -> "/var/wwwroot/"
$root->filename(); // -> "index.html"
$root->basename(); // -> "index"
$root->extension(); // -> "html"

Path::info('../log.txt')
	->abs($root)
	->get(); // -> "/var/log.txt"

Path::info('/foo/../var/root/index.html')
	->normalize()
	->get(); // -> "/var/wwwroot/index.html"
```

###  Health Score

50

—

FairBetter than 96% of packages

Maintenance81

Actively maintained with recent releases

Popularity20

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 59.1% 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 ~645 days

Total

5

Last Release

224d ago

Major Versions

v1.1.0 → v2.0.02025-09-16

PHP version history (3 changes)v1.0.0PHP &gt;=5.6

v1.1.0PHP ^7.2 || ^8.0

v2.0.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/6364011a12f22cb5046056371bde6170218218c560eddfdc08b4644b7648af78?d=identicon)[timostamm](/maintainers/timostamm)

---

Top Contributors

[![timostamm](https://avatars.githubusercontent.com/u/4289451?v=4)](https://github.com/timostamm "timostamm (13 commits)")[![ducrot](https://avatars.githubusercontent.com/u/3525119?v=4)](https://github.com/ducrot "ducrot (9 commits)")

---

Tags

filesystempathrelative pathabsolute pathpathinfo

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/timostamm-pathinfo/health.svg)

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

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[league/flysystem-bundle

Symfony bundle integrating Flysystem into Symfony applications

40129.5M87](/packages/league-flysystem-bundle)[league/flysystem-memory

In-memory filesystem adapter for Flysystem.

8533.6M194](/packages/league-flysystem-memory)[league/flysystem-sftp-v3

SFTP filesystem adapter for Flysystem.

6129.6M91](/packages/league-flysystem-sftp-v3)[league/flysystem-ftp

FTP filesystem adapter for Flysystem.

2820.8M101](/packages/league-flysystem-ftp)

PHPackages © 2026

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