symfony2: how to integrate a php library which is not a bundle
问题 I am trying to integrate Agile CRM in my Symfony2 application. There is a PHP library provided by Agile : https://github.com/agilecrm/php-api However it's not a bundle. How can I integrate it correctly in my application? Should I put a require once in my app.php or my kernel? Or is there a better way? 回答1: Composer has a feature to auto load files https://getcomposer.org/doc/04-schema.md#files { "autoload": { "files": ["src/MyLibrary/functions.php"] } } Other ways ? Expose the functionality