There is no license information available for the latest version (dev-main) of this package.

a quck lib to create file filled with mapping of a site

dev-main 2022-08-04 13:51 UTC

This package is auto-updated.

Last update: 2025-07-04 20:24:37 UTC


README

require "vendor/autoload.php";

Использование

SiteMap::createFile($array, $type, $path);


$array - массив данных о сайте (сайтах) вида
$array = [ 
    [
        'loc'=> 'https://github.com',
        'lastmod' => '2022-12-20',
        'priority' => '1',
        'changefreq' => 'never'
    ]
]; 
$type - строка - тип создаваемоего файла, в зависимости от типа меняется формат данных внутри файла. Поддерживаемые типы - JSON, XML, CSV
$path - строка - полный путь по которому нужно будет сохранить создаваемый файл вида "директория/имя.тип"