Search code examples
phpcakephpcakephp-2.4vendor

Loading several files as CakePHP vendors


Good day,

I have a third-party library that I would like to use with cake 2.x. Is consists of many .php files located in different nested folders. I would like to know if there is a way to import all the files with one single command e.g. make the import go through all the folders and include all the files located in them.

Thank You in advance.


Solution

  • I think what you are looking for is composer. It's a dependency manager for php. It lets you include (and update very easily) external library into your project, and has an autoloader.