PHPackages                             infog/used\_files\_mapper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. infog/used\_files\_mapper

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

infog/used\_files\_mapper
=========================

Small library to help debugging apps by logging the used php files

0.7.1(6y ago)6691GPL-3.0-or-laterPHP

Since Jun 25Pushed 6y ago2 watchersCompare

[ Source](https://github.com/InFog/used_files_mapper)[ Packagist](https://packagist.org/packages/infog/used_files_mapper)[ RSS](/packages/infog-used-files-mapper/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (9)Used By (0)

UsedFilesMapper
===============

[](#usedfilesmapper)

This library will log the `php` files used by your PHP application.

The idea here is to understand which parts of your code are used and which are not, so it is safer to remove them.

This library can be specially useful when upgrading PHP versions or even to learn more about a new codebase.

It works by having a log of the used files and then making a usage report out of those files.

Usage
-----

[](#usage)

Simply register the mapper in your index file passing a filename to write the output to:

```
