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

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

denismitr/sitemap
=================

Simple Google Sitemap Generator

1.0.1(9y ago)021MITPHP

Since Jan 12Pushed 9y ago1 watchersCompare

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

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

PHP Sitemap generator for websites
==================================

[](#php-sitemap-generator-for-websites)

Author - **Denis Mitrofanov**
-----------------------------

[](#author---denis-mitrofanov)

[TheCollection.ru](http://thecollection.ru)

### Version 1.0.0

[](#version-100)

### Usage

[](#usage)

This program crwawls the entire website storing links, priorities and update periods.

```
$sitemap = new Sitemap('http://moskvado.ru/');
$sitemap
    ->setExcluded(['http://moskvado.ru/dashboard/', 'http://moskvado.ru/register/', 'http://moskvado.ru/login/'])
    ->setLevel(0, 1, 'daily')
    ->setLevel(1, 0.80, 'weekly')
    ->setLevel(2, 0.64, 'weekly')
    ->setLevel(3, 0.64, 'monthly')
    ->setDefaultUpdatePeriod('monthly')
    ->setMinimalProirity(0.5);

    $links = $sitemap->generate();
    $links->toXmlFile('sitemap.xml');
```

First you set the website you want to parse, than set the routes you want to exclude. Levels are set from 0 as domain root, to the third level, everything else should be set as minimalPriority (default is 0.64). Default update period is set to 'monthly'.

When you run $sitemap-&gt;generate() it return a LinksCollection object. Than you can persist it to actual sitemap.xml file. By runnig $links-&gt;toXmlFile('sitemap.xml') of course you can specify full path, and not just the file name.

The output will contain xml with line for every detected link like following:

```

    http://moskvado.ru/kompyutery-i-it-uslugi/orgtekhnika/
    weekly
    0.64

```

### Resources that use this generator are:

[](#resources-that-use-this-generator-are)

- [TheCollection.ru](http://thecollection.ru)
- [Moskvado.ru](http://moskvado.ru)
- [ruben-ovanesov.ru](http://ruben-ovanesov.ru)
- [L-Artgallery.ru](http://L-Artgallery.ru)

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

3456d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d68ae5d5ca94f49a69f961a7825865d92247b09e276a25fcc6ad485d4c8c964?d=identicon)[denismitr](/maintainers/denismitr)

---

Top Contributors

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

### Embed Badge

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

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

PHPackages © 2026

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