PHPackages                             robier/sitemaps - 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. robier/sitemaps

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

robier/sitemaps
===============

Library for generating sitemaps

v0.3.5(8y ago)0141MITPHPPHP ^7.1

Since Oct 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/robier/sitemaps)[ Packagist](https://packagist.org/packages/robier/sitemaps)[ Docs](https://github.com/robier/sitemaps)[ RSS](/packages/robier-sitemaps/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependencies (3)Versions (9)Used By (0)

Sitemaps
--------

[](#sitemaps)

PHP implementation of [sitemaps.org](https://www.sitemaps.org) protocol. This library was build using PHP Generators having in mind using as less memory as possible.

Supporting sitemap formats:

- XML sitemaps
- Text sitemaps

Library is also supporting GZip compression of generated sitemaps.

### Usage

[](#usage)

```
use Robier\Sitemaps\DataProvider;

class Data implements DataProvider
{
    public function fetch(): \Iterator
    {
        for($i = 1; $i data('sitemap', new Data());

// gzip enable
$generator->processor(new GZip());

foreach($generator as $item){
    //
    // $item is instance of File/Contract
}
```

### Installation

[](#installation)

```
composer require robier/sitemaps
```

### Docker

[](#docker)

For development you can use docker:

```
tests/docker/build
tests/docker/run
tests/docker/enter
tests/docker/run xdebug
```

### Todo

[](#todo)

- Implement Atom/RSS format
- write tests
- add better documentation

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Every ~4 days

Total

8

Last Release

3104d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/3607521?v=4)[Robert](/maintainers/robier)[@robier](https://github.com/robier)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/robier-sitemaps/health.svg)

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

###  Alternatives

[koehlersimon/slug

Helps you managing the URL slugs of your TYPO3 site

2965.7k](/packages/koehlersimon-slug)

PHPackages © 2026

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