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

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

prolificrohit/sitemaps
======================

A simple, scalable, highly extensible and seo friendly php sitemap generator.

1.0.2(8y ago)9700GPL-3.0-or-laterPHPPHP &gt;=5.1.2

Since Jan 1Pushed 8y agoCompare

[ Source](https://github.com/prolificrohit/sitemaps)[ Packagist](https://packagist.org/packages/prolificrohit/sitemaps)[ RSS](/packages/prolificrohit-sitemaps/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (3)Used By (0)

PHP Sitemaps Package
====================

[](#php-sitemaps-package)

A simple, scalable, highly extensible and seo friendly php sitemap generator. It also supports image sitemap.

Installation
------------

[](#installation)

You can install the package through composer:

> composer require prolificrohit/sitemaps

Examples
--------

[](#examples)

- For any array of urls:

    ```
      $sitemap = new Sitemap("sitemaps/test.xml");
      $sitemap->setMaxUrls(5000);
      $sitemap->setBuffer(1000);
      foreach ($urls as $url) {
          $sitemap->addUrl($url);
      }
      $fileNames = $sitemap->finish();

    ```
- To add images:

    ```
    foreach ($items as $item) {
        $sitemap->addUrl($item->link, function($url) use($item){
            $url->addImage($item->image, "Caption", "Title");
        });
    }

    ```

Dependency
----------

[](#dependency)

It is a simple php package and hence it supports all php based frameworks like laravel, zend, symfony, falcon, lumen etc. The only dependency for this package is PHP.

Coming Soon
-----------

[](#coming-soon)

Support for video and news sitemap is on the way.

License
-------

[](#license)

[![License: GPL v3](https://camo.githubusercontent.com/1b0c7e4911720d0444c16a1ffd145a039f14a1a7305362ab51184f757a4dd6bc/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d47504c25323076332d626c75652e737667)](https://github.com/prolificrohit/sitemaps/blob/master/LICENSE)

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3064d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/68269772?v=4)[Rohit Agarwal \[Coordinates Changed\]](/maintainers/prolificrohit)[@prolificrohit](https://github.com/prolificrohit)

---

Top Contributors

[![prolific](https://avatars.githubusercontent.com/u/6470435?v=4)](https://github.com/prolific "prolific (9 commits)")

---

Tags

phpphp7seo-friendlysitemapsitemap-generatorsitemap-xmlsitemapsphpgeneratorextensibleSitemapscalablesitemap-generatorsitemap-xmlseo-friendlysimple-sitemaps

### Embed Badge

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

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

###  Alternatives

[tomloprod/radiance

A deterministic mesh gradient avatar generator for PHP.

1407.5k](/packages/tomloprod-radiance)[kphoen/sitemap-generator

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

1688.0k4](/packages/kphoen-sitemap-generator)

PHPackages © 2026

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