How can I use a library directly inside an existing Symfony2 project. I am, for instance, trying to add the faker library. I installed it via composer but I don't know how and where to put the code I need.
According to documentation:
// require the Faker autoloader
require_once '/path/to/Faker/src/autoload.php';
// alternatively, use another PSR-0 compliant autoloader (like the Symfony2 ClassLoader for instance)
What is a simple explanation of auto loader?
How to use a library directly without a bundle?
Is it a requirement for a library to have an autoload.php
file so that it can be integrated inside a php project?
Where to put the above code?
Any links explaining such notions for newbies? Thank you very much for your usual guidance.