PHP code example of semivan / my-russian-tax
1. Go to this page and download the library: Download semivan/my-russian-tax 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/ */
semivan / my-russian-tax example snippets
$client = new MyRussianTax();
// Авторизация пользователя
$client->('login', 'password');
// Добавление прихода
$receiptId = $client->addIncome('Уборка 5', 1);
// URL чека
$receiptUrl = $client->getReceiptUrl($receiptId);
// Информация о чеке
$receiptInfo = $client->getReceiptInfo($receiptId);