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

ActiveLibrary

eden/path
=========

Path resolver

4.0.1(10y ago)1412.8k↑17.3%10MITPHPPHP &gt;=5.4.1

Since Oct 7Pushed 10y ago3 watchersCompare

[ Source](https://github.com/Eden-PHP/Path)[ Packagist](https://packagist.org/packages/eden/path)[ Docs](http://eden-php.com)[ RSS](/packages/eden-path/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (4)Used By (10)

[![logo](https://camo.githubusercontent.com/683ba05b2b51f50045c674b19a4f0ceb30702a8ab495623be7c02e07ab226f08/687474703a2f2f6564656e2e6f70656e6f766174652e636f6d2f6173736574732f696d616765732f636c6f75642d736f6369616c2e706e67)](https://camo.githubusercontent.com/683ba05b2b51f50045c674b19a4f0ceb30702a8ab495623be7c02e07ab226f08/687474703a2f2f6564656e2e6f70656e6f766174652e636f6d2f6173736574732f696d616765732f636c6f75642d736f6369616c2e706e67) Eden Path
===============================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-eden-path)

[![Build Status](https://camo.githubusercontent.com/430ec72327fd23236d897dff36c03eef7b19dd40ce1272ccb8a1291701e059f7/68747470733a2f2f6170692e7472617669732d63692e6f72672f4564656e2d5048502f506174682e737667)](https://travis-ci.org/Eden-PHP/Path)
==================================================================================================================================================================================================================================================

[](#)

- [Install](#install)
- [Introduction](#intro)
- [API](#api)
    - [absolute](#absolute)
    - [append](#append)
    - [getArray](#getArray)
    - [prepend](#prepend)
    - [pop](#pop)
    - [replace](#replace)
- [Contributing](#contributing)

====

Install
-------

[](#install)

`composer install eden/path`

====

Introduction
------------

[](#introduction)

Instantiate path in this manner.

```
$path = eden('path', '/some/path');

```

====

API
---

[](#api)

====

### absolute

[](#absolute)

Attempts to get the full absolute path as described on the server. The path given must exist.

#### Usage

[](#usage)

```
eden('path', '/some/path')->absolute(string|null $root);

```

#### Parameters

[](#parameters)

- `string|null $root` - The root path

Returns `Eden\Path\Index`

#### Example

[](#example)

```
eden('path', '/some/path')->absolute();

```

====

### append

[](#append)

Adds a path to the existing one

#### Usage

[](#usage-1)

```
eden('path', '/some/path')->append(*string $path);

```

#### Parameters

[](#parameters-1)

- `*string $path` - The extra path to append

Returns `Eden\Path\Index`

#### Example

[](#example-1)

```
eden('path', '/some/path')->append('foo');

```

====

### getArray

[](#getarray)

Returns the path array

#### Usage

[](#usage-2)

```
eden('path', '/some/path')->getArray();

```

#### Parameters

[](#parameters-2)

Returns `array`

====

### prepend

[](#prepend)

Adds a path before the existing one

#### Usage

[](#usage-3)

```
eden('path', '/some/path')->prepend(*string $path);

```

#### Parameters

[](#parameters-3)

- `*string $path` - The path to prepend

Returns `Eden\Path\Index`

#### Example

[](#example-2)

```
eden('path', '/some/path')->prepend('foo');

```

====

### pop

[](#pop)

Remove the last path

#### Usage

[](#usage-4)

```
eden('path', '/some/path')->pop();

```

#### Parameters

[](#parameters-4)

Returns `Eden\Path\Index`

====

### replace

[](#replace)

Replaces the last path with this one

#### Usage

[](#usage-5)

```
eden('path', '/some/path')->replace(*string $path);

```

#### Parameters

[](#parameters-5)

- `*string $path` - replaces the last path with this

Returns `Eden\Path\Index`

#### Example

[](#example-3)

```
eden('path', '/some/path')->replace('foo');

```

====

\#Contributing to Eden

Contributions to *Eden* are following the Github work flow. Please read up before contributing.

\##Setting up your machine with the Eden repository and your fork

1. Fork the repository
2. Fire up your local terminal create a new branch from the `v4` branch of your fork with a branch name describing what your changes are. Possible branch name types:
    - bugfix
    - feature
    - improvement
3. Make your changes. Always make sure to sign-off (-s) on all commits made (git commit -s -m "Commit message")

\##Making pull requests

1. Please ensure to run `phpunit` before making a pull request.
2. Push your code to your remote forked version.
3. Go back to your forked version on GitHub and submit a pull request.
4. An Eden developer will review your code and merge it in when it has been classified as suitable.

###  Health Score

36

—

LowBetter than 82% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity35

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity60

Established project with proven stability

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

Total

3

Last Release

3840d ago

PHP version history (2 changes)v4PHP &gt;=5.3.1

4.0.1PHP &gt;=5.4.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/120378?v=4)[Christian Blanquera](/maintainers/cblanquera)[@cblanquera](https://github.com/cblanquera)

---

Top Contributors

[![clark21](https://avatars.githubusercontent.com/u/5639521?v=4)](https://github.com/clark21 "clark21 (8 commits)")

---

Tags

libraryeden

### Embed Badge

![Health badge](/badges/eden-path/health.svg)

```
[![Health](https://phpackages.com/badges/eden-path/health.svg)](https://phpackages.com/packages/eden-path)
```

###  Alternatives

[eden/mail

Eden POP3, IMAP and SMTP component

178273.4k1](/packages/eden-mail)[eden/sqlite

Eden SQLite Search, Collection, Model ORM componen

199.2k2](/packages/eden-sqlite)

PHPackages © 2026

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