← Back to Discover

filo

filo is a call tracer and live debugger for PHP that needs no Xdebug and no extensions.

Application & server monitoring

What it does

Install filo as a development dependency with composer require --dev giacomomasseron/filo. Running vendor/bin/filo on makes every request write a trace. Running vendor/bin/filo serve starts the viewer at http://127.0.0.1:8090. In the viewer, you explore a recorded request as a flamegraph or as a call tree with self-time hotspots. You can also set breakpoints on a function, method or closure. When a request hits a breakpoint, it appears in a paused panel with local variables laid out and arguments expanded. The request continues on your command.

Capabilities

  • The flamegraph lays out every call on a timeline. You click a frame to zoom and use breadcrumbs to climb back out.
  • The call tree shows inclusive and self milliseconds per call, highlights hotspots, and handles overlapping middleware correctly.
  • The top functions view aggregates calls by self time. filo says high call count plus high self time usually means an N+1.
  • Instrumentation is pure PHP, with no PECL and no recompile. filo says it works on shared hosting, in containers, and anywhere you can't install extensions.
  • The whole viewer ships as a single HTML file. You can point it at your traces or open it offline with sample data.

When to use it

  • You want to trace and debug a PHP app without Xdebug or extensions.
  • You want to pause a running request and inspect its variables without an IDE.
  • You work on shared hosting or in containers where you can't install extensions.