---
title: Introduction
slug: php-sdk
docTags: 
createdAt: 2023-03-22T16:43:35.000Z
---

&#x20;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](https://box.klevu.com/merchant/signup)**.
   *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
composer require klevu/php-sdk
```

:FontAwesome[]{icon="fa-brands fa-github"} You can also browse and download the source code from github at &#x20;

## 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](https://www.php.net/manual/en/simplexml.installation.php) for more information.

You will also require a [PSR-18 compatible](https://www.php-fig.org/psr/psr-18/) HTTP client, such as guzzlehttp/guzzle,
which provides psr/http-client-implementation support.
A [list of compatible libraries can be found on Packagist](https://packagist.org/providers/psr/http-client-implementation).

We also recommend a [PSR-3 compatible](https://www.php-fig.org/psr/psr-3/) logger library, such as monolog/monolog.
This will allow the SDK to write activity it performs to a location of your choice.
