Download the PHP package yaknet/lighthouse without Composer
On this page you can find all versions of the php package yaknet/lighthouse. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download yaknet/lighthouse
More information about yaknet/lighthouse
Files in yaknet/lighthouse
Package lighthouse
Short Description A lightweight, zero-dependency performance profiler and CLI/HTML flamegraph renderer for PHP.
License MIT
Informations about the package lighthouse
YakNet Lighthouse ๐ฏ๏ธ (Lightweight PHP Performance Profiler)
YakNet Lighthouse is a zero-dependency, ultra-lightweight, and premium performance profiler library for PHP applications. It enables developers to trace execution times and memory deltas of code blocks, build nested call trees, register checkpoints, and render gorgeous colorized profiles in the CLI or export them as premium dark-themed HTML dashboards.
๐ Features
- โฑ๏ธ Call Tree Profiling: Nest execution blocks to automatically trace time and memory hierarchy.
- โก Zero Dependencies: Lightweight overhead written entirely in pure, highly-optimized PHP.
- ๐ฉบ Self-Healing Nested Stack: Automatically handles and gracefully stops unclosed child spans when a parent is stopped.
- ๐ Beautiful CLI Flame-Tree: Renders colorized ASCII trees directly in the terminal, scaling units from microseconds to megabytes.
- ๐ Premium HTML Dashboards: Exports standalone, responsive, glassmorphic dark-themed reports with nested interactive trees, memory charts, and checkpoints.
- โณ Checkpoint Deltas: Track memory allocation changes relative to initialization benchmarks.
๐ฆ Installation
Install the package via Composer:
๐ Quick Start
1. Basic Usage
Wrap your code execution blocks with start and stop calls:
2. Measuring Callbacks
Quickly measure the execution of closures using measure:
3. Registering Checkpoints
Trace specific code milestones and memory delta changes:
๐ Generating Reports
1. Colorized CLI Flame-Tree
Print a beautiful call tree directly to your terminal or logs:
Terminal Output Example:
2. Standalone HTML Dashboard
Generate a stunning dark-themed HTML report:
๐งช Running Tests
Ensure all features work in your local environment by running the test suite:
Perform static analysis check at level 9:
๐ License
This project is licensed under the MIT License. See LICENSE for details. "Illuminate your code bottlenecks." ๐ฏ๏ธ