I'm working on a package that I later want to upload to packagist. But for now, I just want to develop it locally. But I can't find a way to have composer autoload my package without having it in Packagist.
Currently my project structure looks like this:
www/
index.php
composer.json
composer.lock
vendor/
autoload.php
acme/
http/
composer.json
src/
Request.php
I have manually placed my acme
folder inside the vendor
folder. I also added another composer.json
inside the acme/http
folder with the following contents:
{
"name": "Acme/Http",
"authors": [{
"name": "Acme"
}],
"require": {
"php": ">=5.3.0"
},
"autoload": {
"psr-4": {
"Acme\\Http\\": "src/"
}
}
}
Now, how can I now add my "local" project to composers autoload.php
?