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

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

jjok/xml-sitemap
================

Generate an XML sitemap.

1.1.0(12y ago)019MITPHPPHP &gt;=5.3.0

Since Mar 17Pushed 12y ago1 watchersCompare

[ Source](https://github.com/jjok/XmlSitemap)[ Packagist](https://packagist.org/packages/jjok/xml-sitemap)[ Docs](https://github.com/jjok/XmlSitemap)[ RSS](/packages/jjok-xml-sitemap/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (0)

XmlSitemap
==========

[](#xmlsitemap)

[![Build Status](https://camo.githubusercontent.com/57c2477e0459ac3b7ed00537af3c3d081151636c8a8b3019e44efc900dd05584/68747470733a2f2f7472617669732d63692e6f72672f6a6a6f6b2f586d6c536974656d61702e706e67)](https://travis-ci.org/jjok/XmlSitemap)

Generate an XML sitemap.

```
$sitemap = new \jjok\XmlSitemap\Sitemap();
$sitemap->addUrl(new \jjok\XmlSitemap\Url('http://www.example.com/'));
$sitemap->addUrl(new \jjok\XmlSitemap\Url('http://www.example.com/some-page', 0.6, '2013-06-28', 'hourly'));

header('Content-type: application/xml; charset=utf-8');
echo $sitemap->toString();

```

Run Tests
---------

[](#run-tests)

```
phpunit

```

Copyright (c) 2013 Jonathan Jefferies

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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

4440d ago

### Community

Maintainers

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

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[markbaker/phpgeodetic

Geodetic library

2013.0k](/packages/markbaker-phpgeodetic)[justintadlock/hybrid-carbon

God-like post featured image script.

202.5k](/packages/justintadlock-hybrid-carbon)

PHPackages © 2026

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