Getting started with our PHP SDK

This page will get you started with our PHP SDK in no time. Let's dive in!

Get the PHP SDK

We offer a PHP SDK package that is ready for use. It's open source and we happily accept contributions to it.

First, grab the latest stable version via composer.

composer require ohdearapp/ohdear-php-sdk

Next, create an instance of the SDK. This takes your API key as a single, mandatory, parameter. If you don't have an API key yet, read up on the API authentication first first.

$apiKey = "iK4YfZe2i1RAe22tKP4xejGKDZP .... ";
$ohDear = new OhDear\PhpSdk\Ohdear($apiKey);

Once the SDK has been initiated, you can continue adding sites or checks to your account.