saboohy/basepath

The Helper Function For Base Path Directory of The Project

v1.1.2 2025-02-19 14:40 UTC

This package is auto-updated.

Last update: 2025-04-19 15:07:18 UTC


README

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

  • PHP >= 7.4

Installation

You can install the package via composer:

composer require saboohy/basepath

Usage

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

License

The MIT License. Please, look at License File for more information.