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

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

euskadi31/sitemap-php
=====================

A PHP 5.3+ framework for sitemap

v0.2.0(10y ago)0220[1 issues](https://github.com/euskadi31/sitemap-php/issues)MITPHPPHP &gt;=5.3.3

Since Apr 2Pushed 10y ago1 watchersCompare

[ Source](https://github.com/euskadi31/sitemap-php)[ Packagist](https://packagist.org/packages/euskadi31/sitemap-php)[ RSS](/packages/euskadi31-sitemap-php/feed)WikiDiscussions master Synced 1mo ago

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

Sitemap [![Build Status](https://camo.githubusercontent.com/cf1a18063834f671f76ea1fa25e2bc50bc9f6537806b3e6e59724f11bedf7226/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6575736b61646933312f736974656d61702d7068702e706e67)](http://travis-ci.org/euskadi31/sitemap-php)
=======================================================================================================================================================================================================================================================================================

[](#sitemap-)

Sitemap generator

Example
-------

[](#example)

Sitemap

```
require 'path/to/vendor/autoload.php';

$sitemap = new Euskadi31\Component\Sitemap\Writer\Sitemap();

//$sitemap->setCompression(true);
//$sitemap->setCompressionLevel(9);

$sitemap->addUrl('https://www.domain.tld/my/page1.html');

$sitemap->addUrl(
    'https://www.domain.tld/my/page2.html',
    new DateTime('2015-03-09 18:00:00')
);

$sitemap->addUrl(
    'https://www.domain.tld/my/page3.html',
    new DateTime('2015-03-09 18:01:00'),
    Sitemap::CHANGEFREQ_DAILY
);

$sitemap->addUrl(
    'https://www.domain.tld/my/page4.html',
    new DateTime('2015-03-09 18:02:00'),
    Sitemap::CHANGEFREQ_HOURLY,
    0.8
);

//file_put_contents(__DIR__ . '/sitemap.xml.gz', $sitemap->render());
file_put_contents(__DIR__ . '/sitemap.xml', $sitemap->render());
```

Sitemap index

```
require 'path/to/vendor/autoload.php';

$index = new Euskadi31\Component\Sitemap\Writer\SitemapIndex();

//$index->setCompression(true);
//$index->setCompressionLevel(9);

$index->addSitemap('https://www.domain.tld/sitemap_product.xml');

$index->addSitemap(
    'https://www.domain.tld/sitemap.xml',
    new DateTime('2015-03-09 18:00:00')
);

//file_put_contents(__DIR__ . '/sitemap_index.xml.gz', $index->render());
file_put_contents(__DIR__ . '/sitemap_index.xml', $index->render());
```

License
-------

[](#license)

sitemap-php is licensed under [the MIT license](LICENSE.md).

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Total

3

Last Release

3762d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/166d3f646053e073824a9f1d2ef6c3bb6bbf9f28f5e3d5764ec45354ade21d7b?d=identicon)[euskadi31](/maintainers/euskadi31)

---

Top Contributors

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

---

Tags

googlegeneratorSitemap

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[mastani/laravel-google-static-map

Laravel Google Static Map Generator

471.5M8](/packages/mastani-laravel-google-static-map)[dmitryd/typo3-dd-googlesitemap

Google sitemaps for TYPO3

24198.0k](/packages/dmitryd-typo3-dd-googlesitemap)[kphoen/sitemap-generator

Provides a way to create/generate a sitemap using Propel, Doctrine, etc.

1687.8k4](/packages/kphoen-sitemap-generator)[asika/sitemap

PHP Simple Sitemap Generator

1918.0k](/packages/asika-sitemap)[tzfrs/googlesitemapparser

Google Sitemap is a Sitemap standard that is supported by Ask.com, Google, YAHOO and MSN Search. This library can read in such Sitemaps and parse all urls from them.

143.3k](/packages/tzfrs-googlesitemapparser)[terabin/flarum-ext-sitemap

Generate a Sitemap for Flarum automatically

103.0k1](/packages/terabin-flarum-ext-sitemap)

PHPackages © 2026

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