composer/installers — pull request #41 by milesj (2012-10-26 20:47:27+00:00)
Title: Allow for custom install path names

This adds support for a "pathName" field that can be used to define the name of the folder where the library will be cloned to. The reason for this is as follows:

First off, I have a stand-alone PHP library called Decoda here: https://packagist.org/packages/mjohnson/decoda
I then have a CakePHP version of Decoda here: https://packagist.org/packages/mjohnson/decoda-cakephp

The problem is that when composer installs the CakePHP Decoda version, it creates a folder called DecodaCakephp which is incorrect, it should be Decoda. By adding the pathName field, I can define it as "Decoda" and by-pass the inflection rules which generate the wrong folder name.