PHP Core SDK

The core PHP SDK for non-framework applications. Tracks cURL, Guzzle, and file_get_contents.

Installation

composer require outboundiq/outboundiq-php

Initialization

<?php
require_once 'vendor/autoload.php';

// Initialize at the start of your application
outboundiq_init('your_api_key_here');

// All HTTP calls are now tracked!

Configuration Options

outboundiq_init('your_api_key', [
    'enabled' => true,
    'batch_size' => 50,
    'timeout' => 5,
    'retry_attempts' => 3,
]);

Guzzle with Middleware

use GuzzleHttp\Client;
use OutboundIQ\GuzzleMiddleware;

$client = new Client([
    'handler' => GuzzleMiddleware::getHandlerStack()
]);

$response = $client->get('https://api.example.com/endpoint');

SDK Methods

use OutboundIQ\Client;

$client = new Client('your_api_key');

// Get provider recommendation
$recommendation = $client->recommend('payment-processing');

// Check provider status
$status = $client->providerStatus('stripe');

// Check endpoint status
$endpointStatus = $client->endpointStatus('stripe-charges');
PHP Core SDK | OutboundIQ Docs