PHPackages                             saboohy/basepath - 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. saboohy/basepath

ActiveLibrary

saboohy/basepath
================

The Helper Function For Base Path Directory of The Project

v1.1.2(1y ago)326611MITPHPPHP &gt;=7.4

Since Oct 22Pushed 1y ago1 watchersCompare

[ Source](https://github.com/saboohy/basepath)[ Packagist](https://packagist.org/packages/saboohy/basepath)[ RSS](/packages/saboohy-basepath/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (1)

Basepath
========

[](#basepath)

Returns the base path of the project.

Specifies the main direction of the project based on the `composer.json` file. However, it is recommended to install and use it via composer.

Requirements
------------

[](#requirements)

- PHP &gt;= 7.4

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

[](#installation)

You can install the package via composer:

```
composer require saboohy/basepath
```

Usage
-----

[](#usage)

```
echo basepath(); // ...project_name/
```

License
-------

[](#license)

The MIT License. Please, look at [License File](LICENSE.md) for more information.

###  Health Score

33

—

LowBetter than 74% of packages

Maintenance46

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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 ~212 days

Total

5

Last Release

443d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e11fd6a1f407f8f2729d99e72e0458ec88ded99d253ddd6939df8178add190fa?d=identicon)[saboohy](/maintainers/saboohy)

---

Top Contributors

[![saboohy](https://avatars.githubusercontent.com/u/51738221?v=4)](https://github.com/saboohy "saboohy (10 commits)")[![VictorT83](https://avatars.githubusercontent.com/u/4590491?v=4)](https://github.com/VictorT83 "VictorT83 (1 commits)")

---

Tags

phpcomposerdirectorybasepath

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/saboohy-basepath/health.svg)

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

###  Alternatives

[nunomaduro/patrol

An elegant command-line tool that keeps your PHP Project's dependencies in check

271127.8k3](/packages/nunomaduro-patrol)[camcima/php-geohash

Refactored GeoHash package

1074.0k](/packages/camcima-php-geohash)[matthew-p/docker-server

Universal docker server, Nginx, PHP-FPM, MySql, Redis

112.8k](/packages/matthew-p-docker-server)

PHPackages © 2026

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