PHPackages                             axy/fs-paths - 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. axy/fs-paths

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

axy/fs-paths
============

Manipulation of the file system paths

0.1.1(10y ago)1201[3 issues](https://github.com/axypro/fs-paths/issues)MITPHPPHP &gt;=5.4.0

Since Mar 30Pushed 8y ago2 watchersCompare

[ Source](https://github.com/axypro/fs-paths)[ Packagist](https://packagist.org/packages/axy/fs-paths)[ Docs](https://github.com/axypro/fs-paths)[ RSS](/packages/axy-fs-paths/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

axy\\fs-paths
=============

[](#axyfs-paths)

Manipulation of the file system paths.

[![Latest Stable Version](https://camo.githubusercontent.com/cef8e0d02fe33557f9854a33c085b55ab04ea11a72009155cc8b2105d1a9f5ba/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6178792f66732d70617468732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/axy/fs-paths)[![Minimum PHP Version](https://camo.githubusercontent.com/b52c83f3d45755ebcb1e6863ebb202ab192aaf773424369ffdeedae107f027ef/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344253230352e342d3838393242462e7376673f7374796c653d666c61742d737175617265)](https://php.net/)[![Build Status](https://camo.githubusercontent.com/185bb92a71172f5975f43ca9245e9dd622893738e978eed0352139bd2801d953/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f61787970726f2f66732d70617468732f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/axypro/fs-paths)[![Coverage Status](https://camo.githubusercontent.com/ce8d9d714ebba5e3e47682c9542001175eb05b642d3f23d70fb88f05a7257790/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f61787970726f2f66732d70617468732f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/axypro/fs-paths?branch=master)[![License](https://camo.githubusercontent.com/42ffee97cec5e04d5794d05f3c18179e9e3927083fff163de6dfa15caf528964/68747470733a2f2f706f7365722e707567782e6f72672f6178792f66732d70617468732f6c6963656e7365)](LICENSE)

- The library does not require any dependencies (except composer packages).
- Tested on PHP 5.4+, PHP 7, HHVM (on Linux), PHP 5.5 (on Windows).
- Install: `composer require axy/fs-paths`.
- License: [MIT](LICENSE).

### Documentation

[](#documentation)

The library provides functions for work with file paths. Normalization, resolving and etc.

The library works with abstract paths. No requests to the real file system.

#### Contents

[](#contents)

- [Supported types of file systems](doc/types.md)
- [Static, adapter, path instance](doc/features.md)
- [File Name and Directory Name](doc/dirname.md)
- [Paths Class](doc/Paths.md)
- [Adapters](doc/adapters.md)
- [Path Instance](doc/path.md)
- [Algorithms of Resolving and Normalization](doc/resolve.md)

#### Examples

[](#examples)

```
use axy\fs\paths\Paths;

/* Static methods */
Paths::normalize('/one/two/../three'); // "/one/three"

/* Adapters */
$posix = Paths::getAdapter('posix');
$win = Paths::getAdapter('windows');

$posix->isAbsolute('c:\config.sys'); // False
$win->isAbsolute('c:\config.sys'); // True

/* Objects */
$url = Paths::getAdapter('url')->create('http://site.loc/news/view.php?id=10');
$url->resolve('../index.html#footer'); // http://site.loc/index.html#footer

$url->params->fragment; // "footer"
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

2

Last Release

3830d ago

### Community

Maintainers

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

---

Top Contributors

[![vasa-c](https://avatars.githubusercontent.com/u/557081?v=4)](https://github.com/vasa-c "vasa-c (45 commits)")

---

Tags

urluriposixpathwindowsfile system

### Embed Badge

![Health badge](/badges/axy-fs-paths/health.svg)

```
[![Health](https://phpackages.com/badges/axy-fs-paths/health.svg)](https://phpackages.com/packages/axy-fs-paths)
```

###  Alternatives

[league/uri-components

URI components manipulation library

31932.3M67](/packages/league-uri-components)[igorw/file-serve-bundle

Symfony2 Bundle for serving protected files.

166156.5k](/packages/igorw-file-serve-bundle)[jbzoo/path

PHP virtual path library

1194.7k6](/packages/jbzoo-path)[internal/path

Type-safe, immutable file path library with cross-platform support and automatic normalization.

1137.7k3](/packages/internal-path)[wikimedia/relpath

Work with file paths to join or find the relative path

11894.3k2](/packages/wikimedia-relpath)[riimu/kit-pathjoin

Cross-platform library for normalizing and joining file system paths

12603.0k4](/packages/riimu-kit-pathjoin)

PHPackages © 2026

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