PHP code example of nativerent / yookassa-sdk-php

1. Go to this page and download the library: Download nativerent/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/ */

    

nativerent / yookassa-sdk-php example snippets






use YooKassa\Client;

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

...
    ""php": ">=5.3.2",
        "yoomoney/yookassa-sdk-php": "^2.1"
...