1. Go to this page and download the library: Download rame0/yandex-market-object 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/ */
use rame0\Generators\YandexMarket\YML;
$yml = new YML('MyShop', 'MyCorp', 'https://www.site.ru/');
$yml->setDate(strtotime('2021-03-08T17:20:28+00:00'));
$yml->setOutputFile('./test.yml');
//...
use rame0\Generators\YandexMarket\YML;
$yml = new YML('MyShop', 'MyCorp', 'https://www.site.ru/');
$yml->setDate(strtotime('2021-03-08T17:20:28+00:00'));
$yml->setOutputFile('./test.yml');
// Выводить в файл на лету
$yml->setIsOutputOnTheFly(true);
// Выводить через каждые 100 добавленных записей
$yml->setFlushEvery(100);
//...
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.