Introduction

2min

The Klevu PHP-SDK is a public library you can utilise in your PHP projects to handle common interactions with Klevu services, without having to reinvent the wheel.

The library is designed to be simple enough to get up and running quickly, but extensible enough to allow you to tailor to your site and platform's specific needs.

Getting Started

  1. Create an account with Klevu. Free trial, with full access to all features is available.
  2. Retrieve your JS API Key and REST AUTH Key from Store Settings > Store Info in your account.
  3. Install the SDK in your application using composer.
Shell


 You can also browse and download the source code from github at https://github.com/klevu/php-sdk

System Requirements

To use this library, you must be running a support version of PHP (8.1+) compiled with the libxml and simplexml extensions. See the PHP docs for more information.

You will also require a PSR-18 compatible HTTP client, such as guzzlehttp/guzzle, which provides psr/http-client-implementation support. A list of compatible libraries can be found on Packagist.

We also recommend a PSR-3 compatible logger library, such as monolog/monolog. This will allow the SDK to write activity it performs to a location of your choice.

Updated 30 Sep 2024
Doc contributor
Doc contributor
Doc contributor
Did this page help you?