Download the PHP package flightphp/apm without Composer
On this page you can find all versions of the php package flightphp/apm. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download flightphp/apm
More information about flightphp/apm
Files in flightphp/apm
Package apm
Short Description High-Performance Application Performance Monitoring (APM) for Flight PHP for better observability in your applications.
License MIT
Homepage https://docs.flightphp.com/awesome-plugins/apm
Informations about the package apm
FlightPHP APM
A lightweight Application Performance Monitoring (APM) library for the FlightPHP framework. Keep your app fast, spot bottlenecks, and sleep better at night!
What is FlightPHP APM?
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.
Installation
Grab it with Composer:
Quick Start
-
Log APM Metrics
Add this to yourindex.php
or services file to start tracking: -
Set Up Config
Run this to create your.runway-config.json
: -
Process Metrics
Fire up the worker to crunch those metrics (runs once by default):Want it continuous? Try
--daemon
: - View Your Dashboard
Launch the dashboard to see your app’s pulse:
Keeping the Worker Running
The worker processes your metrics—here’s how to keep it humming:
- Daemon Mode:
php vendor/bin/runway apm:worker --daemon
(runs forever!) - Crontab:
* * * * * php /path/to/project/vendor/bin/runway apm:worker
(runs every minute) - Tmux/Screen: Start it in a detachable session with
tmux
orscreen
for easy monitoring.
Requirements
- PHP 7.4 or higher
- FlightPHP Core v3.15+
Documentation
Want the full scoop? Check out the FlightPHP APM Documentation for setup details, worker options, dashboard tricks, and more!
Community
Join us on Matrix IRC #flight-php-framework:matrix.org to chat, ask questions, or share your APM wins!
License
MIT—free and open for all!