Handling Embedded PHP Dependencies¶
In particular legacy projects that were started before composer gained traction in the PHP world often use dependencies that are embedded in the repository of the project.
PHP Analyzer handles, and caches these dependencies as if they were defined as external dependencies, just make
sure to define the respective paths in your .scrutinizer.yml
. Let's say your external libraries are placed in
the library/
folder, and your own source code is placed in the src/
folder, your configuration would look
like this:
filter:
paths:
- src/
dependency_paths:
- library/