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 service 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 API key.

<?php
require __DIR__ . '/../vendor/autoload.php';
use Inspector\Inspector;
use Inspector\Configuration;
// Create a configuration instance.
$configuration = new Configuration('YOUR_API_KEY');
// Pass the configuration to the Inspector constructor.
$inspector = new Inspector($configuration);

Get a fresh API key by signing up for Inspector (https://app.inspector.dev/register) and create a new application.