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

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

one23/path-normalizer
=====================

Path normalizer and helper

v0.1.4(2mo ago)0791↓78.1%MITPHPPHP ^8

Since Jul 25Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/FlexIDK/path-normalizer)[ Packagist](https://packagist.org/packages/one23/path-normalizer)[ Docs](https://github.com/FlexIDK/path-normalizer)[ RSS](/packages/one23-path-normalizer/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (2)Versions (5)Used By (0)

Normalize path
==============

[](#normalize-path)

Todo

Usage
-----

[](#usage)

```
use One23\PathNormalizer\Path;

echo Path::normalize('foo/bar') . PHP_EOL; // outputs 'foo/bar'
echo Path::normalize(['foo', 'bar']) . PHP_EOL; // outputs 'foo/bar'

// The join method accepts multiple arguments or a single array
echo Path::normalize(['foo', 'bar', 'baz']) . PHP_EOL;   // outputs 'foo/bar/baz'

// The '.' and '..' directory references will be resolved in the paths
echo Path::normalize('foo/./bar/../baz') . PHP_EOL;     // outputs 'foo/baz'
echo Path::normalize(['foo/./', 'bar', '../baz']) . PHP_EOL; // outputs 'foo/baz'

// Only the first path can denote an absolute path in the join method
echo Path::normalize(['/foo', '/bar/baz']) . PHP_EOL;     // outputs '/foo/bar/baz'
echo Path::normalize(['foo', '/bar']) . PHP_EOL;          // outputs 'foo/bar'
echo Path::normalize(['foo', '../bar', 'baz']) . PHP_EOL; // outputs 'bar/baz'
echo Path::normalize(['', '/bar', 'baz']) . PHP_EOL;      // outputs '/bar/baz'

// Relative paths can start with a '..', but absolute paths cannot
echo Path::normalize(['/foo', '../../bar', 'baz']) . PHP_EOL; // outputs '/bar/baz'
echo Path::normalize(['foo', '../../bar', 'baz']) . PHP_EOL;  // outputs '../bar/baz'

// Empty paths will result in a '.'
echo Path::normalize(['foo/..']) . PHP_EOL; // outputs blank
echo Path::normalize(['foo', 'bar', '../..']) . PHP_EOL; // outputs blank
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance86

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

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

Total

4

Last Release

66d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8653521?v=4)[Eugene](/maintainers/FlexIDK)[@FlexIDK](https://github.com/FlexIDK)

---

Top Contributors

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

---

Tags

normalizepathpath helperpath normalize

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ergebnis/composer-normalize

Provides a composer plugin for normalizing composer.json.

1.1k41.4M2.8k](/packages/ergebnis-composer-normalize)[league/uri-components

URI components manipulation library

31940.5M98](/packages/league-uri-components)[matthiasmullie/path-converter

Relative path converter

10632.1M9](/packages/matthiasmullie-path-converter)[sebastianfeldmann/camino

Path management the OO way

177.3M1](/packages/sebastianfeldmann-camino)

PHPackages © 2026

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