Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/rarst/locate-vendor
- Owner: Rarst
- Created: 2014-05-29T19:25:24.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-11-11T15:00:20.000Z (about 10 years ago)
- Last Synced: 2024-10-09T05:52:28.447Z (3 months ago)
- Topics: composer
- Language: PHP
- Homepage:
- Size: 156 KB
- Stars: 5
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# Locate Vendor — directory in Composer
Locate Vendor determines file system location of packages in Composer environment.
# InstallationRequire 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' );
```