voniersa/sitemap-generator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

voniersa/sitemap-generator

最新稳定版本:1.0.0

Composer 安装命令:

composer require voniersa/sitemap-generator

包简介

A small PHP script that searches your website for links and generates a sitemap.xml file out of them.

README 文档

README

Unit tests

A small PHP script that searches your website for links and generates a sitemap.xml file out of them.

Requirements

PHP Version 8.2 or higher

How to use

You can install the library with composer:

composer require voniersa/sitemap-generator

Execution

To execute the generator script simply execute the following command:

php vendor/voniersa/sitemap-generator/bin/sitemap-generator.php --base-url "URL_OF_YOUR_WEBSITE" --change-frequency "CHANGE_FREQUENCY_FOR_XML_SCHEMA" --ssl-verify "BOOLEAN" --output-dir "PATH_TO_YOUR_OUTPUT_DIRECTORY"

You need to replace the PLACEHOLDER_STRINGS in the command with your own values.

Explanation of the script arguments

argument name description default value
--base-url The URL of your website from which a sitemap is to be created https://localhost
--change-frequency The frequency with which the page is expected to change. This value provides general information to search engines. For more information. For more information and all valid values, see the documentation on sitemaps. monthly
--ssl-verify Acknowledge SSL certificate errors. false
--output-dir Path to the directory, where the generated sitemap.xml file is saved ./

License

This library is released under the MIT Licence. See the bundled LICENSE file for details.

Author

Sascha Vonier (@voniersa)

统计信息

  • 总下载量: 3
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-09-15