You can install Inspector package using composer:
composer require inspector-apm/inspector-php
PHP >= 7.2
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.
<?phprequire __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);