PHPackages                             pspark/sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. pspark/sdk

ActiveLibrary[API Development](/categories/api)

pspark/sdk
==========

PHP SDK for merchant REST API

0.0.18(3mo ago)02912PHPPHP &gt;=8.1

Since Sep 4Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/ps-park/sdk)[ Packagist](https://packagist.org/packages/pspark/sdk)[ RSS](/packages/pspark-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (20)Used By (0)

PHP PSPark SDK usage
====================

[](#php-pspark-sdk-usage)

You should have `jwt-key` and `api-key` keys to be able to use our API via this SDK. `jwt-key` is a CSR file.

Generating a CSR file
---------------------

[](#generating-a-csr-file)

A Certificate Signing Request (**.csr**) file is required to authenticate an API user and to get your **API-Key**. The **.csr** file contains your API public key that will be used to validate the request signature. To generate your RSA 4096 private key (stored in **pspakr\_secret.key**) for signing requests, use the following command line:

```
openssl req -new -newkey rsa:4096 -nodes -keyout pspakr_secret.key -out pspark_public_key.csr
```

Make sure you keep the API secret key (**pspark\_secret.key**) safe and secure. Do not share your API secret key with anyone. To get your **API-key** you should upload your **pspark\_public\_key** in the cabinet.ppark.io.

Request examples
----------------

[](#request-examples)

> Bellow shown a simple example of SDK usage.

```
