If a C/C++ programmer wants to tidy out a large C or C++ project, then he can remove some code files (*.c, *.h, *.cpp, ...) that he thinks as possibly orphaned. When he starts the compiler, and it runs without errors, then he was right. When the compiler throws errors, because the removed files are needed, then the programmer knows for sure that a particular code file is really needed by the large project.
We have a large web project here, that was written in PHP. It consists of a lot of PHP files and image files. The problem is that there is no compiler for a large PHP based web project.
One person here read an article 10 or 15 years ago. This article showed a solution to get the same result for a PHP project as a C/C++ programmer with a C/C++ project would get using his compiler. He remembered only the mere fact that this solution exists, but he lost that article and he forgot the solution in detail.
Does anybody know whether such a solution exists? If so, what is the name? Are there URLs? Key words for search engines etc.?
includeandrequireand work from there