PHPackages                             konsulting/project-root - 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. konsulting/project-root

ActiveLibrary

konsulting/project-root
=======================

A simple package to determine the working root directory for a composer dependency

1.1(7y ago)4601.9k↓31.8%12MITPHPPHP &gt;=5.6

Since Feb 9Pushed 7y ago1 watchersCompare

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

READMEChangelog (2)Dependencies (1)Versions (3)Used By (2)

Project Root
============

[](#project-root)

A simple package to help with resolving paths when working in a composer package.

Specifically, for some functionality you may need to refer to the packages root directory, but then need to use the project's root when the package is included as a dependency.

Rather than keep repeating dirty logic from before, we can use this package.

Installation
------------

[](#installation)

`composer require konsulting/package-root`

Usage
-----

[](#usage)

```
