Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/rarst/locate-vendor

Helper for vendor directory location in Composer.
https://github.com/rarst/locate-vendor

composer

Last synced: 2 months ago
JSON representation

Helper for vendor directory location in Composer.

Awesome Lists containing this project

README

        

# Locate Vendor — directory in Composer

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

# Installation

Require in your `composer.json`

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

or

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

# Methods

## `get_vendor_path()`

Example code:

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

## `get_package_path()`

Example code:

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