PHPackages                             xlient/xml-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. xlient/xml-sitemap

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

xlient/xml-sitemap
==================

An XML sitemap iterator that lets you traverse all urls in a sitemap.

v1.0.1(2y ago)0518UnlicensePHPPHP &gt;=8.0.0

Since Sep 23Pushed 2y ago1 watchersCompare

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

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

Xlient XML Sitemap Iterator
===========================

[](#xlient-xml-sitemap-iterator)

An XML sitemap iterator that lets you traverse all urls in a sitemap written in PHP using XmlReader. Supports sitemap indexes and url sets.

Example
-------

[](#example)

```
$sitemapIterator = new \Xlient\Xml\Sitemap\SitemapIterator();
$sitemapIterator->open(
    __DIR__ . '/sitemap.xml',
    [
        // Skip over urls that have not been modified since this date.
        'modified_date_time' => null, // DateTime|string
        // Skip over urls that have a priority lower than this value.
        'minimum_priority' => null, // float
        // Specify the encoding of the sitemap.
        'encoding' => null, // String
    ]
);

foreach ($sitemapIterator as $url => $data) {
    ...
}

$sitemapIterator->close();
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

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 ~248 days

Total

2

Last Release

1083d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2a08c501267e2e6271db54e89dd582c3b9f0440b5c23b8a50638442f0e7b7061?d=identicon)[xlientrc](/maintainers/xlientrc)

---

Top Contributors

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

---

Tags

iteratorSitemapxlient

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[nikic/iter

Iteration primitives using generators

1.1k5.9M38](/packages/nikic-iter)[samdark/sitemap

Sitemap and sitemap index builder

5491.4M37](/packages/samdark-sitemap)[loophp/collection

A (memory) friendly, easy, lazy and modular collection class.

745663.8k13](/packages/loophp-collection)[athari/yalinqo

YaLinqo, a LINQ-to-objects library for PHP

4561.2M5](/packages/athari-yalinqo)[ginq/ginq

LINQ to Object inspired DSL for PHP

192257.5k3](/packages/ginq-ginq)[chdemko/sorted-collections

Sorted Collections for PHP &gt;= 8.2

222.5M3](/packages/chdemko-sorted-collections)

PHPackages © 2026

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