composer/composer — pull request #178 by igorw (2012-01-02 16:05:46+00:00)
Title: Composer::getPackageDir()

Sometimes you need to access files within a package directory. There are a number of use cases.

* including non-PSR files (functions.php)
* accessing assets (eg. js/css/images)

This PR provides a programmatic way to get the directory where a package is installed. It also makes it easier to get a composer instance from app code.

**Usage:**

```php
getPackageDir('symfony/finder');
```