PHPackages                             pointybeard/helpers-functions-paths - 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. pointybeard/helpers-functions-paths

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

pointybeard/helpers-functions-paths
===================================

A collection of helpful functions related to paths, directories, and files names

1.1.0.1(5y ago)04.4k↓50%3MITPHPPHP &gt;=7.4

Since May 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/pointybeard/helpers-functions-paths)[ Packagist](https://packagist.org/packages/pointybeard/helpers-functions-paths)[ Docs](https://github.com/pointybeard/helpers-functions-paths)[ RSS](/packages/pointybeard-helpers-functions-paths/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (3)

PHP Helpers: Path Functions
===========================

[](#php-helpers-path-functions)

A collection of helpful functions related to paths, directories, and files names

Installation
------------

[](#installation)

This library is installed via [Composer](http://getcomposer.org/). To install, use `composer require pointybeard/helpers-functions-paths` or add `"pointybeard/helpers-functions-paths": "~1.0"` to your `composer.json` file.

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

### Requirements

[](#requirements)

There are no particuar requirements for this library other than PHP 7.4 or greater.

To include all the [PHP Helpers](https://github.com/pointybeard/helpers) packages on your project, use `composer require pointybeard/helpers` or add `"pointybeard/helpers": "~1.0"` to your composer file.

Usage
-----

[](#usage)

This library is a collection of helpful functions related to paths, directories, and files names. They are included by the vendor autoloader automatically. The functions have a namespace of `pointybeard\Helpers\Functions\Paths`

The following functions are provided:

- `is_path_absolute(string $path) : bool`
- `get_relative_path(string $from, string $to, bool $strict = true): string`

Example usage:

```
