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

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.
1
<?php
2
require __DIR__ . '/../vendor/autoload.php';
3
4
use Inspector\Inspector;
5
use Inspector\Configuration;
6
7
// Create a configuration instance.
8
$configuration = new Configuration('YOUR_INGESTION_KEY');
9
10
// Pass the configuration to the Inspector constructor.
11
$inspector = new Inspector($configuration);
Copied!
Get a new Ingestion Key by signing up for Inspector (https://app.inspector.dev/register) and creating a new application.
Last modified 1yr ago