Introduction
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.
- Retrieve your JS API Key and REST AUTH Key from Store Settings > Store Info in your account.
- Install the SDK in your application using composer.
You can also browse and download the source code from github at https://github.com/klevu/php-sdk
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.