2017 © Pedro Peláez
 

library project-root

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

image

konsulting/project-root

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

  • Friday, February 9, 2018
  • by konsulting
  • Repository
  • 1 Watchers
  • 1 Stars
  • 3,538 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 23 % Grown

The README.md

Project Root

A simple package to help with resolving paths when working in a composer package., (*1)

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., (*2)

Rather than keep repeating dirty logic from before, we can use this package., (*3)

Installation

composer require konsulting/package-root, (*4)

Usage

<?php

\Konsulting\ProjectRoot::forPackage('package-name')->resolve(__DIR__);

Contributing

Contributions are welcome and will be fully credited. We will accept contributions by Pull Request., (*5)

Please:, (*6)

  • Use the PSR-2 Coding Standard
  • Add tests, if you’re not sure how, please ask.
  • Document changes in behaviour, including readme.md.

Testing

We use PHPUnit, (*7)

Run tests using PHPUnit: vendor/bin/phpunit, (*8)

The Versions

09/02 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

09/02 2018

dev-analysis-qgw011

dev-analysis-qgw011

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

  Sources   Download

MIT

The Requires

 

09/02 2018

1.0

1.0.0.0

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

  Sources   Download

MIT

The Requires