keven/root-dir

Automagically find the root of the current PHP project

1.0.0 2021-03-20 01:16 UTC

This package is auto-updated.

Last update: 2024-04-20 07:29:43 UTC


README

Install

The rootDir() function requires Composer to be part of the project.

The best way to install this packqage is to use Composer as well:

$ composer require keven/root-dir

Usage

<?php

use function Keven\rootDir;

$rootDir = rootDir();