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

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

weevers/path
============

PHP 5.4 port of the node/iojs path module

v0.2.0(11y ago)031.3k↑100%1MITPHPPHP &gt;=5.4.0

Since Mar 31Pushed 11y ago1 watchersCompare

[ Source](https://github.com/vweevers/php-path)[ Packagist](https://packagist.org/packages/weevers/path)[ Docs](https://github.com/vweevers/php-path)[ RSS](/packages/weevers-path/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (4)Used By (1)

path
====

[](#path)

PHP 5.4 port of the node/iojs [path](https://iojs.org/api/path.html) module, because PHP is like a family holiday dinner and I want to survive. Description from the iojs documentation:

> This module contains utilities for handling and transforming file paths. Almost all these methods perform only string transformations. The file system is not consulted to check whether paths are valid.

[![packagist status](https://camo.githubusercontent.com/5790314055030455a66836813c4b5ca4d9745ecfb78e63a27d71d403b3f58524/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f776565766572732f706174682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/weevers/path) [![Travis build status](https://camo.githubusercontent.com/87ea95870304ee25fafbfd9dd175c2da3e53d1e1d44c8db8afd636ef4c28b543/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f76776565766572732f7068702d706174682e7376673f7374796c653d666c61742d737175617265266c6162656c3d747261766973)](http://travis-ci.org/vweevers/php-path) [![AppVeyor build status](https://camo.githubusercontent.com/3374a05ae54feca0f7ce5094dbfbfdb14356e3ab0f0ef68098b7b15ad233f72d/68747470733a2f2f696d672e736869656c64732e696f2f6170707665796f722f63692f76776565766572732f7068702d706174682e7376673f7374796c653d666c61742d737175617265266c6162656c3d6170707665796f72)](https://ci.appveyor.com/project/vweevers/php-path) [![Dependency status](https://camo.githubusercontent.com/ff11214922bc73fc8d0ac9b4ba3669ec56c9544d67ce3fe4c28ff40074ac1f61/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535316138313132333636316631626565353030303037622f62616467652e7376673f7374796c653d666c61742d737175617265)](https://www.versioneye.com/user/projects/551a81123661f1bee500007b)

Jump to: [usage](#usage) / [install](#install) / [license](#license)

examples
--------

[](#examples)

Example output on a posix system, assuming "/please" is the current working directory:

```
