Find a file containing a class (based on __autoload), but don't include it
<p>I am using Composer to load PHP dependencies. Given the name of the class I want to find path of the file where this class is defined, but don't include it.</p>

<p>Example:</p>

<pre><code>echo get_file_for_class('Carbon\\Carbon');
</code></pre>

<p>Output:</p>

<pre><code>vendor/briannesbitt/Carbon/src/Carbon/Carbon.php
</code></pre>

<p>Thanks!</p>