PHP code example of zoon / yookassa-sdk-php

1. Go to this page and download the library: Download zoon/yookassa-sdk-php library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

zoon / yookassa-sdk-php example snippets






use YooKassa\Client;

$client = new Client();
$client->setAuth('shopId', 'secretKey');
bash
composer 

...
    ""php": "^8.1",
        "zoonru/yookassa-sdk-php": "^2.6.3"
...