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.3(1y ago)0526↓50%MITPHPPHP ^8

Since Jul 25Pushed 1y 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 1mo ago

READMEChangelogDependencies (1)Versions (4)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

25

—

LowBetter than 37% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity36

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

Total

3

Last Release

633d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8311e2852f397956d5401ea17683fc8ee583dc68635cdff2fc2f8a5fefb23a98?d=identicon)[FlexIDK](/maintainers/FlexIDK)

---

Top Contributors

[![FlexIDK](https://avatars.githubusercontent.com/u/8653521?v=4)](https://github.com/FlexIDK "FlexIDK (3 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.1k37.3M2.1k](/packages/ergebnis-composer-normalize)[league/uri-components

URI components manipulation library

31932.3M67](/packages/league-uri-components)[matthiasmullie/path-converter

Relative path converter

10229.6M7](/packages/matthiasmullie-path-converter)[sebastianfeldmann/camino

Path management the OO way

176.4M1](/packages/sebastianfeldmann-camino)

PHPackages © 2026

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