Rectangle 27 0

php Centralize vendor folder in Laravel 4.1.x?

How are you including that library? I'm guessing a composer psr autoloader. You'll have to include it some other way or set up composer just for those (in each project you need to autoload libs) and include it's bootstrap.

In Laravel you can change the folder your applications load the framework and dependencies from bootstrap/autoload.php.

Ok, I'm doing it right now. If it's ok you'll take the point :)

There's a problem, My custom library inside "project1/app/lib/Project1" is hidden, IDK why. If I test another project, like project2, where there isn't any custom library it works like a charm

There's a require __DIR__.'/../vendor/autoload.php'; line in it and you can change it to whatever you need. Thus you can change it to some outside folder, common to all projects.

Yes, why not? Laravel does not depend on composer, it depends on the packages it maintains.

Yup I see, and how about the composer part? How can I run a composer inside the CDN? just adding a single composer.json with all the require?