PHPackages                             aldarien/root - 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. aldarien/root

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

aldarien/root
=============

Find the root path for your proyect

1.0.5(8y ago)03.4k↓50%3MITPHP

Since Aug 1Pushed 8y agoCompare

[ Source](https://github.com/Aldarien/root)[ Packagist](https://packagist.org/packages/aldarien/root)[ RSS](/packages/aldarien-root/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (2)Versions (7)Used By (3)

root
====

[](#root)

get root directory path for your project

Usage
-----

[](#usage)

add `Root::root('project')` or `root('project')` or `Root::root()` or `root()` where you need the root directory of your proyect.

Example
-------

[](#example)

For the structure:

```
/usr/share/www/projects
- myProject
-- src
-- tests

```

using `Root::root('myProject')`

outputs: `/usr/share/www/projects/myProject`

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

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

Total

6

Last Release

3188d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/031d3f5b37015f185e36a6579c589d8d063554af500f52b86c8c944ef5bab9ad?d=identicon)[Aldarien](/maintainers/Aldarien)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aldarien-root/health.svg)

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

###  Alternatives

[thalidzhokov/country-codes

CountryCodes PHP Class to get array of countries with ISO 3166-1 alpha-2, ISO 3166-1 alpha-3, ISO 3166-1 numeric and ISD codes it can provide following information related to country

13111.5k](/packages/thalidzhokov-country-codes)

PHPackages © 2026

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