Registry / utility / webmozart-path-util

webmozart-path-util

JSON →
library2.3.0phppackagistunverified

A robust cross-platform utility for normalizing, comparing and modifying file paths.

composer require webmozart/path-util
INSTALL
IMPORT
SIG · WEBMOZART-PATH-UTI
W
webmozart-path-util
utilityphpv2.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Path
✓ use Webmozart\PathUtil\Path;

Normalize a file path

use Webmozart\PathUtil\Path; echo Path::canonicalize('/var/www/../www//app'); // /var/www/app
Debug
Known issues
breakingDeprecated in favor of symfony/filesystem
fix
Migrate to Symfony Filesystem component
affects: >=2.3.0
Upgrade
Version history
2.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
webmozart-path-util — pip install webmozart-path-util · libregistry