PHPackages                             voniersa/sitemap-generator - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. voniersa/sitemap-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

voniersa/sitemap-generator
==========================

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

1.0.0(7mo ago)03MITPHPPHP ^8.2CI passing

Since Sep 15Pushed 7mo agoCompare

[ Source](https://github.com/voniersa/sitemap-generator)[ Packagist](https://packagist.org/packages/voniersa/sitemap-generator)[ RSS](/packages/voniersa-sitemap-generator/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

sitemap-generator
=================

[](#sitemap-generator)

[![Unit tests](https://github.com/voniersa/sitemap-generator/actions/workflows/unit-tests.yaml/badge.svg?event=push)](https://github.com/voniersa/sitemap-generator/actions/workflows/unit-tests.yaml)

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

Requirements
------------

[](#requirements)

PHP Version 8.2 or higher

How to use
----------

[](#how-to-use)

You can install the library with composer:

```
composer require voniersa/sitemap-generator
```

Execution
---------

[](#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

[](#explanation-of-the-script-arguments)

argument namedescriptiondefault value--base-urlThe URL of your website from which a sitemap is to be created--change-frequencyThe 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](https://www.sitemaps.org/de/protocol.html).monthly--ssl-verifyAcknowledge SSL certificate errors.false--output-dirPath to the directory, where the generated sitemap.xml file is saved./License
-------

[](#license)

This library is released under the MIT Licence. See the bundled [LICENSE file](LICENSE) for details.

Author
------

[](#author)

Sascha Vonier ([@voniersa](https://github.com/voniersa))

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance62

Regular maintenance activity

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

237d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/99a1cb45e14288dc0467937d169279ca3996effc906828f48955730b4ef7e11c?d=identicon)[voniersa](/maintainers/voniersa)

---

Top Contributors

[![voniersa](https://avatars.githubusercontent.com/u/53305317?v=4)](https://github.com/voniersa "voniersa (4 commits)")

---

Tags

phpscriptsitemapsitemap-generatorsitemap-xml

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/voniersa-sitemap-generator/health.svg)

```
[![Health](https://phpackages.com/badges/voniersa-sitemap-generator/health.svg)](https://phpackages.com/packages/voniersa-sitemap-generator)
```

###  Alternatives

[shlinkio/shlink

A self-hosted and PHP-based URL shortener application with CLI and REST interfaces

4.8k4.3k](/packages/shlinkio-shlink)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[dhlparcel/magento2-plugin

DHL Parcel plugin for Magento 2

11180.5k2](/packages/dhlparcel-magento2-plugin)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
