saboohy / basepath
The Helper Function For Base Path Directory of The Project
v1.1.2
2025-02-19 14:40 UTC
Requires
- php: >=7.4
Requires (Dev)
- phpunit/phpunit: ^9.5
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.