Adding external library to Laravel 4+

When you work with a framework, sometimes you need to use an external library. This will show you the way to add an external library to Laravel 4. Actually, it is very simple.

For example, you have a library that locates in path: app/library/external_lib. So you should add that path to composer.json file (located at root directory of framework)

The next step is the final step, run command to dump library to autoload file of framework.

I assumed that composer was installed to your machine.