PHP

circle-info

The Hackle PHP SDK supports PHP version 7.1.33 and above.

Please use PHP SDK from version 1.0.0 onwards.

Add SDK Dependency

Add the SDK dependency.

arrow-up-right

php composer.phar require hackle/hackle-php-sdk:{sdk_version}

//OR
composer require hackle/hackle-php-sdk:{sdk_version}

Then autoload it.

require 'vendor/autoload.php';

SDK Initialization

HackleClient is the class that provides methods for using SDK features. To use the SDK, you need to initialize HackleClient.

Instantiation

Instantiate HackleClient by passing the SDK Key.

HackleClient periodically caches data to a file each time you use the methods provided by Hackle, in order to obtain the necessary information.

Last updated