rarst/locate-vendor

Experimental helper for vendor directory location in Composer

1.0.1 2013-07-19 13:14 UTC

This package is auto-updated.

Last update: 2024-12-20 05:29:10 UTC


README

Locate Vendor determines file system location of packages in Composer environment.

Installation

Require in your composer.json

{
	"require" : {
		"rarst/locate-vendor" : "~1.0"
	}
}

or

composer require rarst/locate-vendor:~1.0 --update-no-dev

Methods

get_vendor_path()

Example code:

$vendor_path  = \Rarst\Composer\Locate_Vendor::get_vendor_path();

get_package_path()

Example code:

$package_path = \Rarst\Composer\Locate_Vendor::get_package_path( 'twbs/bootstrap' );