Scout PHP APM Agent
Email us at support@ScoutAPM.com to get on the beta invite list!
Monitor the performance of PHP apps with Scout's PHP APM Agent.
Detailed performance metrics and transaction traces are collected once the agent is installed and configured.
PHP Versions: 7.1+
This package is the base library for the various framework-specific packages.
To install the ScoutAPM Agent for a specific framework, use the specific package instead.
Using the base library directly
use Scoutapm\Agent; use Scoutapm\Config; $agent = Agent::fromConfig(Config::fromArray([ 'name' => 'Your application name', 'key' => 'your scout key', 'monitor' => true, ])); // If the core agent is not already running, this will download and run it (from /tmp by default) $agent->connect(); // Use $agent to record `webTransaction`, `backgroundTransaction`, `instrument` or `tagRequest` as necessary // Nothing is sent to Scout until you call this - so call this at the end of your request $agent->send();
For full installation and troubleshooting documentation, visit our help site.
Please contact us at support@ScoutAPM.com or create an issue in this repo.