该软件包最新版本(dev-main)没有可用的许可证信息。

一个快速库,用于创建包含站点映射的文件

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

This package is auto-updated.

Last update: 2024-09-04 18:42:23 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 - 字符串 - 需要保存创建的文件的完整路径,例如 "目录/名称.类型"