For the complete documentation index, see llms.txt. This page is also available as Markdown.

PHP

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.

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.

  • You can find the SDK Key in SDK Integration Info located inside the Hackle Service Dashboard.

  • Cache information is stored in /tmp/hackle/.

Last updated