Is there a way to get composer to download my application into my root folder?
I'd like users to be able to run the following in their docroot:
composer require name/package
And have that download all my application files to the docroot, then install dependencies into vendor via the composer.json file.
composer install
Is this even possible?
I thought I could use the repositories
directive in the composer.json
but it still installs all my files into vendor
My composer.json looks like so:
{
"name": "username/package",
"description": "My App Description",
"require": {
"php": ">=5.5.0",
"raven/raven": "0.11.0",
"filp/whoops": "~1.0",
"robmorgan/phinx": "*",
"swiftmailer/swiftmailer": "@stable"
},
"minimum-stability": "dev"
}
Any way to add my package and have it install where I want?