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.
- PHP >= 7.4
You can install the package via composer:
composer require saboohy/basepathecho basepath(); // ...project_name/The MIT License. Please, look at License File for more information.