PHP code example of opiy-org / yookassa-sdk-php

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

    

opiy-org / yookassa-sdk-php example snippets






use YooKassa\Client;

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

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