Composer does not load src directory for packages
I am using Laravel and Composer to build a web application.
On my local machine, I have a requirement setup in my composer.json file and everything works as it should.
I am using Github to push to a production server, however I run composer install
and add providers and aliases for one of my packages, after which I get a message that no service provider was found.
Then I proceeded to check the vendor folder where the directory for that package was specified, but that directory is missing all files / folders like composer.json directory, src, etc.
Any ideas why they are not loading? The src directory for other packages is fine like symfony, laravel, but not the packages I installed as needed.
The package I am using, artdarek/oauth-4-laravel
on my local machine downloaded fine, including the src directory, etc.
Oh, and I'm using Forge from Laravel to deploy to a cloud server at Digital Ocean.
{
"name": "laravel/laravel",
"description": "The Laravel Framework.",
"keywords": ["framework", "laravel"],
"license": "MIT",
"require": {
"laravel/framework": "4.2.*",
"artdarek/oauth-4-laravel": "dev-master"
},
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php"
],
"psr-4": {
"Karl\\": "app/Karl"
}
},
"scripts": {
"post-install-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-update-cmd": [
"php artisan clear-compiled",
"php artisan optimize"
],
"post-create-project-cmd": [
"php artisan key:generate"
]
},
"config": {
"preferred-install": "dist"
},
"minimum-stability": "stable"
}
source to share