PHPackages                             8fold/php-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. 8fold/php-sitemap

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

8fold/php-sitemap
=================

A library for generating Sitemaps (XML)

2.0.0(3y ago)014MITPHPPHP ^8.1

Since Dec 4Pushed 3y ago1 watchersCompare

[ Source](https://github.com/8fold/php-sitemap)[ Packagist](https://packagist.org/packages/8fold/php-sitemap)[ GitHub Sponsors](https://github.com/8fold)[ GitHub Sponsors](https://github.com/joshbruce)[ RSS](/packages/8fold-php-sitemap/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

8fold Sitemap for PHP
=====================

[](#8fold-sitemap-for-php)

Generates valid XML document and sitemap elements based on the [Sitemap protocol](https://www.sitemaps.org).

SchemaVersion0.9LatestInstallation
------------

[](#installation)

```
composer require 8fold/php-sitemap

```

Usage
-----

[](#usage)

You have received the required metadata in an array; could be the results of a database query.

```
use Eigthfold\Sitemap\Sitemap;

$sitemap = Sitemap::create('http://yourdomain.com');

$items = // your array of items

foreach ($items as $item) {
  $sitemap = $sitemap->addUrl(
    $item->path
  );
}

(string) $sitemap;
```

Details
-------

[](#details)

Designed to fit within a loop.

Other
-----

[](#other)

{links or descriptions or license, versioning, and governance}

###  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

Maturity56

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

Total

2

Last Release

1251d ago

Major Versions

v1.0.0 → 2.0.02022-12-13

### Community

Maintainers

![](https://www.gravatar.com/avatar/3ff7aa36dc04c5b535cd71eadbf66038401edde0c9dfaa688bec4fc16c6d7e8b?d=identicon)[eightfold](/maintainers/eightfold)

---

Top Contributors

[![joshbruce](https://avatars.githubusercontent.com/u/15252830?v=4)](https://github.com/joshbruce "joshbruce (8 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/8fold-php-sitemap/health.svg)

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

###  Alternatives

[datacreativa/laravel-presentable

Create presenters for Eloquent Models

7323.9k](/packages/datacreativa-laravel-presentable)[dcarbone/soap-plus

PHP SoapClient wrapper class

2450.1k](/packages/dcarbone-soap-plus)[symbiote/silverstripe-datachange-tracker

Record and track changes to any dataobjects. View chages/diffs in model admin.

1622.7k3](/packages/symbiote-silverstripe-datachange-tracker)[rcastera/session

Session Class

222.2k](/packages/rcastera-session)

PHPackages © 2026

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