| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
A lightweight Application Performance Monitoring (APM) library for the FlightPHP framework. Keep your app fast, spot bottlenecks, and sleep better at night!
FlightPHP APM helps you track how your app performs in real-time—think of it as a fitness tracker for your code! It logs metrics like request times, memory usage, database queries, and custom events, then gives you a slick dashboard to see it all. Why care? Because slow apps lose users, and finding performance hiccups before they bite saves you headaches (and maybe a few angry emails).
Built to be fast and simple, it slots right into your FlightPHP project with minimal fuss.
Grab it with Composer:
composer require flightphp/apmLog APM Metrics
Add this to your index.php or services file to start tracking:
use flight\apm\logger\LoggerFactory;
use flight\Apm;
$ApmLogger = LoggerFactory::create(__DIR__ . '/../../.runway-config.json');
$Apm = new Apm($ApmLogger);
$Apm->bindEventsToFlightInstance($app);Set Up Config
Run this to create your .runway-config.json:
php vendor/bin/runway apm:initProcess Metrics
Fire up the worker to crunch those metrics (runs once by default):
php vendor/bin/runway apm:workerWant it continuous? Try --daemon:
php vendor/bin/runway apm:worker --daemonView Your Dashboard
Launch the dashboard to see your app’s pulse:
php vendor/bin/runway apm:dashboard --host localhost --port 8001The worker processes your metrics—here’s how to keep it humming:
FlightPHP APM currently supports the following databases for storing metrics:
Want the full scoop? Check out the FlightPHP APM Documentation for setup details, worker options, dashboard tricks, and more!
Join us on Matrix IRC #flight-php-framework:matrix.org to chat, ask questions, or share your APM wins!
MIT—free and open for all!
| Back | FazBrowse Home | New Git URL |