PHPackages                             keven/root-dir - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. keven/root-dir

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

keven/root-dir
==============

Automagically find the root of the current PHP project

1.0.0(5y ago)17MITPHP

Since Mar 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/kevengodet/root-dir)[ Packagist](https://packagist.org/packages/keven/root-dir)[ RSS](/packages/keven-root-dir/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

keven/root-dir
==============

[](#kevenroot-dir)

Install
-------

[](#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
-----

[](#usage)

```
