Silex startup is handled by composer . Documentation The autoload documentation details about autoload capabilities.
It is recommended that you use the psr-0 name scheme for your files. But if you do not want to do this, you can also use classmap autoload.
Here's an example with PSR-0 if the class Foo\Bar is in src/Foo/Bar.php :
{ "autoload": { "psr-0": { "Foo": "src/" } } }
For a class map, see the documentation above.
igorw source share