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

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

bhittani/path
=============

Utilities for working with paths.

0.2.1(6y ago)027MITPHPPHP &gt;=5.6CI failing

Since Sep 27Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kamalkhan/path)[ Packagist](https://packagist.org/packages/bhittani/path)[ Docs](https://github.com/kamalkhan/path)[ RSS](/packages/bhittani-path/feed)WikiDiscussions master Synced 2w ago

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

Path
====

[](#path)

[![Travis Build Status](https://camo.githubusercontent.com/6ceb2db947367aa2959383746d18dd041cc1159aa1ab6c7c743df155eb7f2cbc/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f6b616d616c6b68616e2f706174682e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/kamalkhan/path)[![Packagist Downloads](https://camo.githubusercontent.com/4ab27f6fcfbb25fa45c6b3457f7fcacb0cd637a0c0274d7e4122d1c26b618b7c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6268697474616e692f706174682e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bhittani/path)[![License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)

Utilities for working with paths in PHP.

- [Install](#install)
- [Usage](#usage)
    - [Sanitize](#sanitize)
    - [Join](#join)
    - [Absolute](#absolute)
    - [Normalize](#normalize)
    - [Is Absolute](#is-absolute)
    - [Is Root](#is-root)
- [Static Access](#static-access)
- [Changelog](#changelog)
- [Testing](#testing)
- [Contributing](#contributing)
- [Security](#security)
- [Credits](#credits)
- [License](#license)

Install
-------

[](#install)

You may install this package using [composer](https://getcomposer.org).

```
$ composer require bhittani/path --prefer-dist
```

Usage
-----

[](#usage)

This packages offers some helpful utilities when working with paths.

```
