How it works?

Treblle is an SDK that you add on top of your API. Select a platform below to see how to get started

Step 1

Install Treblle via Composer

Run command

composer require treblle/treblle-php

You can ⭐ our Github repo to stay up to date with new updates

View on Github

Go to Step 2
Step 2

Enable Treblle on your API

Add a few lines of code

declare(strict_types=1);
 
use GuzzleHttp\Client;
use Treblle\Factory\TreblleFactory;
 
require_once __DIR__.'/../vendor/autoload.php';
 
error_reporting(E_ALL);
ob_start();
 
$treblle = TreblleFactory::create('_YOUR_API_KEY_', '_YOUR_PROJECT_ID_');

HEADS UP: You need to create an account to get your API KEY and PROJECT ID

Go to Step 3
Done

🎉 You're all set! 🎉

You and your team just got these amazing features:

  • Real-time API monitoring
  • Auto-generated API documenation
  • API analytics
  • Powerfull request search and filtering
  • 1-click API testing
  • Real-time problem detection
  • OpenAPI Specification support
  • Location based request tracking
  • Smart URL parameters detection
  • and many more..
Optional

Configuration params

Debug mode

declare(strict_types=1);
 
use GuzzleHttp\Client;
use Treblle\Factory\TreblleFactory;
 
require_once __DIR__.'/../vendor/autoload.php';
 
error_reporting(E_ALL);
ob_start();
 
$treblle = TreblleFactory::create(
'_YOUR_API_KEY_',
'_YOUR_PROJECT_ID_',
true, // Set true to enable debug mode
);

A boolean that allows you to debug Treblle locally - false by default

Mask sensitive data

declare(strict_types=1);
 
use GuzzleHttp\Client;
use Treblle\Factory\TreblleFactory;
 
require_once __DIR__.'/../vendor/autoload.php';
 
error_reporting(E_ALL);
ob_start();
 
$treblle = TreblleFactory::create(
'_YOUR_API_KEY_',
'_YOUR_PROJECT_ID_',
false,
['secret', 'private', 'user_ssn'] // Define an array of field names to mask
);

PRO TIP: Data is masked before it even leaves your server

Need help getting started with Treblle on your API?

Book a meeting