PHPackages                             wszetko/sitemap - 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. wszetko/sitemap

ActiveLibrary

wszetko/sitemap
===============

Sitemap generator

07PHPCI failing

Since Dec 5Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wszetko/sitemap)[ Packagist](https://packagist.org/packages/wszetko/sitemap)[ RSS](/packages/wszetko-sitemap/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Sitemap generator library
=========================

[](#sitemap-generator-library)

Library to generate XML sitemaps.

[![StyleCI](https://camo.githubusercontent.com/6f396367e8ad316ab72e8c9dd00f70e75788871ac1450384ef1ba89f529c81c1/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3230323332353630342f736869656c643f6272616e63683d6d6173746572)](https://github.styleci.io/repos/202325604) [![Build Status](https://camo.githubusercontent.com/793480bbd4be1fff65b136333ab93245f0ced9e57dea228a54521bd7d4229cd9/68747470733a2f2f7472617669732d63692e6f72672f77737a65746b6f2f736974656d61702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wszetko/sitemap) [![Code Coverage](https://camo.githubusercontent.com/72610b58f6daaa6cf511d3fcc6457c5979f4730681393e4ef07a19337dd7f7e5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f77737a65746b6f2f736974656d61702f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wszetko/sitemap/?branch=master) [![Scrutinizer Code Quality](https://camo.githubusercontent.com/0e82abd6a22df0446d49678322ee6ccef441a481d4de20d7c12810695b7ebc91/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f77737a65746b6f2f736974656d61702f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/wszetko/sitemap/?branch=master)

**Work in progress!**

Example of usage is in example directory.

Installation
------------

[](#installation)

```
$ composer require wszetko/sitemap
```

### Requirements

[](#requirements)

PHP 7.2 or newer is recommended.

Testing
-------

[](#testing)

The library has a :

- a [PHPUnit](https://phpunit.de) test suite,
- other tools using in project developement:
    - [PHP CS Fixer](http://cs.sensiolabs.org/),
    - [PHP\_CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer),
    - [PHP Static Analysis Tool](https://github.com/phpstan/phpstan),
    - [Copy/Paste Detector](https://github.com/sebastianbergmann/phpcpd),
    - [PHP Mess Detector](https://phpmd.org),
    - [PhpMetrics](https://www.phpmetrics.org/),
    - [PHP Parallel Lint](https://github.com/JakubOnderka/PHP-Parallel-Lint),
    - [Psalm](https://github.com/vimeo/psalm),
    - [PHP Magic Number Detector](https://github.com/povils/phpmnd),
    - [PhpCodeAnalyzer](https://github.com/wapmorgan/PhpCodeAnalyzer),
    - [phploc](https://github.com/sebastianbergmann/phploc),
    - [SensioLabs Security Checker](https://github.com/sensiolabs/security-checker).

There are prepared composer scripts to run. To see full list please type in console:

```
$ composer list
```

To run the *full* tests, run the following command from the project folder:

```
$ composer test
```

> Please note that those test should run on PHP 7.1 or higher.

If You want to run just PHPUnit tests please run:

```
$ composer phpunit
```

To do
-----

[](#to-do)

- load previous sitemap and compare changes
- Driver XML Text
- Driver DataCollector MySQL
- Driver DataCollector PostgreSQL
- Driver DataCollector MongoDB
- Driver DataCollector CrunchDB (?)
- Ability to generate sitemap without publishing
- Ability to publish sitemap without clearing previous files
- Logging compatible with PSR-3

License
-------

[](#license)

This library is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c0a2d7ddb411dea1bd1f18dfd3c0b3c563fc1364456a568f97eb38f1293822f9?d=identicon)[pawelkg](/maintainers/pawelkg)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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