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

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

fyre/path
=========

A path utility library.

v3.0.1(8mo ago)0858↓77.8%10MITPHP

Since Oct 26Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/elusivecodes/FyrePath)[ Packagist](https://packagist.org/packages/fyre/path)[ RSS](/packages/fyre-path/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (4)Versions (26)Used By (10)

FyrePath
========

[](#fyrepath)

**FyrePath** is a free, open-source path library for *PHP*.

Table Of Contents
-----------------

[](#table-of-contents)

- [Installation](#installation)
- [Methods](#methods)

Installation
------------

[](#installation)

**Using Composer**

```
composer require fyre/path

```

In PHP:

```
use Fyre\Utility\Path;
```

Methods
-------

[](#methods)

**Base Name**

Get the base name from a file path.

- `$path` is a string representing the file path.

```
$baseName = Path::baseName($path);
```

**Dir Name**

Get the directory name from a file path.

- `$path` is a string representing the file path.

```
$dirName = Path::dirName($path);
```

**Extension**

Get the file extension from a file path.

- `$path` is a string representing the file path.

```
$extension = Path::extension($path);
```

**File Name**

Get the file name from a file path.

- `$path` is a string representing the file path.

```
$fileName = Path::fileName($path);
```

**Format**

Format path info as a file path.

- `$pathInfo` is an array containing the path info.

```
$path = Path::format($pathInfo);
```

**Is Absolute**

Determine whether a file path is absolute.

- `$path` is a string representing the file path.

```
$isAbsolute = Path::isAbsolute($path);
```

**Join**

Join path segments.

All arguments supplied will be joined.

```
$path = Path::join(...$paths);
```

**Normalize**

Normalize a file path.

- `$path` is a string representing the file path.

```
$normalized = Path::normalize($path);
```

**Parse**

Parse a file path.

- `$path` is a string representing the file path.

```
$pathInfo = Path::parse($path);
```

**Resolve**

Resolve a file path from path segments.

All arguments supplied will be resolved.

```
$path = Path::resolve(...$paths);
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance61

Regular maintenance activity

Popularity14

Limited adoption so far

Community15

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

Recently: every ~21 days

Total

25

Last Release

244d ago

Major Versions

v1.0.4 → v2.02023-07-08

v2.0.17 → v3.02025-09-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/fad81fd5941e3a637c8a5749d05ae3ed9314d5e2fee57f59c3d9ec3b41259c6b?d=identicon)[elusivecodes](/maintainers/elusivecodes)

---

Top Contributors

[![elusivecodes](https://avatars.githubusercontent.com/u/18050480?v=4)](https://github.com/elusivecodes "elusivecodes (20 commits)")

---

Tags

filepathphputility

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

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

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

PHPackages © 2026

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