Installation
Connect your application with Inspector.
You can install Inspector package using composer:
composer require inspector-apm/inspector-php

Server requirements

  • PHP >= 7.2

Create an Inspector instance

Be sure to include the composer autoload in your application. The first step is to create an instance of the Configuration class using the Ingestion Key.
<?php
require __DIR__ . '/../vendor/autoload.php';
use Inspector\Inspector;
use Inspector\Configuration;
// Create a configuration instance.
$configuration = new Configuration('YOUR_INGESTION_KEY');
// Pass the configuration to the Inspector constructor.
$inspector = new Inspector($configuration);
Get a new Ingestion Key by signing up for Inspector (https://app.inspector.dev/register) and creating a new application.
Last modified 1yr ago
Copy link
On this page
Server requirements
Create an Inspector instance