2017 © Pedro Peláez
 

composer-plugin composer-projectcontext

Versatile lightweight package to detect a composers' root path.

image

bmack/composer-projectcontext

Versatile lightweight package to detect a composers' root path.

  • Sunday, January 31, 2016
  • by bmack
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

composer-project-context-plugin

A composer plugin to provide an API to access the Composer's root path and thus, access to composer.json, (*1)

What does it do?

The plugin adds a constant BMACK_PROJECTROOT which contains the path to the root path of the project installed via composer., (*2)

An API class is used for accessing the constant, and is actually there so it can be enriched in your own application., (*3)

Why?

In the TYPO3 project, we want to work with the composer.json file to detect certain special parameters. However, this is not possible to detect from the vendor directory during runtime of your PHP application where your project root directory is., (*4)

Installation

Just require the package to your composer project:, (*5)

composer require bmack/composer-projectcontext

Usage

You have then the constant BMACK_PROJECTROOT in your project when including the autoload file, (*6)

License

MIT. Free for everyone, you can even make money off of it., (*7)

Author

Benni Mack benjamin.mack@gmail.com starting in 2016., (*8)

The Versions

31/01 2016

dev-master

9999999-dev http://www.b13.de/

Versatile lightweight package to detect a composers' root path.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • composer-plugin-api ^1.0.0

 

The Development Requires

by Benni Mack

composer project root

31/01 2016

0.1.1

0.1.1.0 http://www.b13.de/

Versatile lightweight package to detect a composers' root path.

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • composer-plugin-api ^1.0.0

 

The Development Requires

by Benni Mack

composer project root

31/01 2016

0.1.0

0.1.0.0 http://www.b13.de/

TYPO3 CMS Installers

  Sources   Download

MIT

The Requires

  • php >=5.5.0
  • composer-plugin-api ^1.0.0

 

The Development Requires

by Benni Mack

composer project root