jimmerioles/bitcoin-currency-converter-php

View on GitHub
src/Util/path_helper.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

declare(strict_types=1);

use Composer\Factory;

if (! function_exists('project_root_path')) {
    /**
     * Get project root path.
     */
    function project_root_path(string $path = ''): string
    {
        return dirname(Factory::getComposerFile()) . DIRECTORY_SEPARATOR . $path;
    }
}