jimmerioles/bitcoin-currency-converter-php

View on GitHub
src/Util/path_helper.php

Summary

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

use Composer\Factory;

if (! function_exists('project_root_path')) {

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