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(9mo ago)03MITPHPPHP ^8.2CI passing

Since Sep 15Pushed 9mo 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 today

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

30

—

LowBetter than 62% of packages

Maintenance56

Moderate activity, may be stable

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

292d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/53305317?v=4)[Sascha Vonier](/maintainers/voniersa)[@voniersa](https://github.com/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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k43](/packages/civicrm-civicrm-core)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[oat-sa/tao-core

TAO core extension

66143.7k124](/packages/oat-sa-tao-core)

PHPackages © 2026

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