A tool for attempting to identify unreferenced files and unused functions in a PHP codebase.
This is by no means exact, and the output is a report that should be checked manually.
- PHP 5.4 (probably)
- grep (so POSIX?)
Run from the top directory of the project you want to check. Like so:
php ~/repos/phpunused/phpunused.php
This is a quick hack to help me analyze a code base. Pull requests are welcome, but apart from that, new features are unlikely.
- Find references in .js files (ajax calls and such)
- Ignore function references in commented out lines
- Recognise prematurely ended functions (return/exit in front of code)