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

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

labcake/path
============

A class made in PHP7 inspired by nodes path module, for modify and create path strings, also read folder/file information.

016PHP

Since May 28Pushed 7y agoCompare

[ Source](https://github.com/LabCake/Path)[ Packagist](https://packagist.org/packages/labcake/path)[ RSS](/packages/labcake-path/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Path
====

[](#path)

A class made in PHP inspired by nodes path module, for modify and create path strings, also read folder/file information

Resolve path

```
// This will return a path to /hello/world
Path::resolve("hello", "world");
```

Basename

```
Path::basename("test.php");
```

Dirname

```
Path::dirname("/var/www/test.php");
```

Extension name

```
Path::extname("test.php");
```

Parse

```
Path::parse("test.php");
```

Exists

```
Path::exists("test.php");
```

Create directory

```
// This will create all the folders needed untill the last one is created
Path::mkdir("/this/is/a/path/to/create");
```

Remove directory

```
// This will remove all the subfolders and files in the selected path recursively
Path::rmdir("/remove/this/folder");
```

Documentation not yet complete

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.1% 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/988667d628a3f5790a4231ecc986643df8915df9174301287156368fe208c7da?d=identicon)[LabCake](/maintainers/LabCake)

---

Top Contributors

[![Wuild](https://avatars.githubusercontent.com/u/381189?v=4)](https://github.com/Wuild "Wuild (16 commits)")[![LabCake](https://avatars.githubusercontent.com/u/39700134?v=4)](https://github.com/LabCake "LabCake (1 commits)")

---

Tags

pathphpresolve

### Embed Badge

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

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

PHPackages © 2026

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