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

Installs: 3

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/mapper-by-mimilasyxa/mapper-site

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

This package is auto-updated.

Last update: 2025-12-04 21:17:21 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 - строка - полный путь по которому нужно будет сохранить создаваемый файл вида "директория/имя.тип"