PHP EyesShows a clickable "N references" hint above PHP classes, interfaces, enums, methods and functions, the way VS Code already does for TypeScript. Click it to peek at every place the symbol is used.
PHP extensions that offer this CodeLens usually keep it behind a premium licence. PHP Eyes adds it for free on top of whichever PHP extension you already use. RequirementsYou need a PHP extension that supports Find All References (Shift+F12). Any of these will do, including their free versions: PHP Eyes doesn't parse or index your code itself. It asks that extension for the symbols in each file and for their references, then shows the count. If Shift+F12 finds a usage, the lens counts it. If Shift+F12 misses it, so does the lens. UsageInstall the extension and open a PHP file. The counts show up above each symbol after the PHP extension finishes indexing your workspace.
Magic methods such as Settings
CodeLens must also be on in VS Code itself ( PerformanceFinding references is the slow part, and it's done by your PHP extension, not this one. To keep the lenses quick:
The first count after opening a workspace can still take a while, because the PHP extension has to finish indexing first. TroubleshootingNo lenses appear. Check that Shift+F12 on a method name lists results. If it doesn't, the PHP extension hasn't finished indexing or isn't running. Also check that Counts are slow. If you have more than one PHP extension installed (for example Intelephense and DEVSENSE), VS Code asks all of them and waits for the slowest. Disabling one for the workspace usually helps a lot. To see how long each lookup takes, run Developer: Set Log Level..., choose PHP Eyes, set it to Debug, and open the PHP Eyes output channel. A count looks wrong. The count matches what Shift+F12 finds. In Laravel projects that means calls through facades, Duplicate lenses. If your PHP extension also shows its own reference CodeLens (for example a licensed Intelephense or DEVSENSE), turn one of them off. ContributingBug reports and pull requests are welcome. See CONTRIBUTING.md. LicenseCopyright (C) 2026 SirMekus PHP Eyes is licensed under the GNU General Public License v3.0. You're free to use, study, change and share it, but any version you distribute, including a modified one, must also be released under GPL-3.0 with its source code available. Versions 0.2.0 and earlier were released under the MIT License. |