PHPackages                             yii-starter-kit/sitemaped - 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. yii-starter-kit/sitemaped

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

yii-starter-kit/sitemaped
=========================

PHP Sitemap abstraction library

2.0.2(1y ago)17.3k↑141.7%MITPHPPHP &gt;=7.3CI passing

Since May 6Pushed 1y agoCompare

[ Source](https://github.com/yii-starter-kit/sitemaped)[ Packagist](https://packagist.org/packages/yii-starter-kit/sitemaped)[ RSS](/packages/yii-starter-kit-sitemaped/feed)WikiDiscussions master Synced 3d ago

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

PHP Sitemap abstraction library
===============================

[](#php-sitemap-abstraction-library)

[![Tests](https://github.com/yii-starter-kit/sitemaped/actions/workflows/php.yml/badge.svg)](https://github.com/yii-starter-kit/sitemaped/actions/workflows/php.yml)

1. Add urls one-by-one
----------------------

[](#1-add-urls-one-by-one)

```
$urlset = new Urlset($links);

foreach(range('a', 'z') as $letter) {
            $url = new Url(
                'https://vocabula.ry/'.$letter,
                new \DateTime('2017-01-01 00:00:01'),
                Url::CHANGEFREQ_MONTHLY,
                0.8
            );

            $url->addImage(new Image('https://test.com/image/'.$i));
            $url->addVideo(new Video('https://test.com/video/'.$i, 'Title '.$i, 'Description '.$i));
            $url->addNews(new News('Awesome news '.$i, '2018-01-01', 'Awesome news name '.$i, 'ru-RU'));

            $urlset->addUrl($url);
        }

$sitemap = new Sitemap($urlset);

$sitemap->toXmlString();
$sitemap->toTxtString();
$sitemap->write(__DIR__ . '/sitemap.xml');
$sitemap->write(__DIR__ . '/sitemap.txt', Sitemap::FORMAT_TXT);
```

2. Using links generator
------------------------

[](#2-using-links-generator)

```
$links = function() {
        foreach(range('a', 'z') as $letter) {
            $url = new Url(
                'https://vocabula.ry/'.$letter,
                new \DateTime('2017-01-01 00:00:01'),
                Url::CHANGEFREQ_MONTHLY,
                0.8
            );

            $url->addImage(new Image('https://test.com/image/'.$i));
            $url->addVideo(new Video('https://test.com/video/'.$i, 'Title '.$i, 'Description '.$i));
            $url->addNews(new News('Awesome news '.$i, '2018-01-01', 'Awesome news name '.$i, 'ru-RU'));

            yield $url;
        }
}

$urlset = new Urlset($links);
$sitemap = new Sitemap($urlset);

$sitemap->toXmlString();
$sitemap->toTxtString();
$sitemap->write(__DIR__ . '/sitemap.xml');
$sitemap->write(__DIR__ . '/sitemap.txt', Sitemap::FORMAT_TXT);
```

3. Sitemap index
----------------

[](#3-sitemap-index)

```
$index = new Sitemapindex();
$sitemap = new Sitemap($index);

foreach (range(1, 2) as $i) {
    $sitemap = new SitemapindexSitemap(
        'http://test.com/'.$i,
        '-1 year'
    );
    $index->addSitemap($sitemap);
}

$content = $sitemap->toXmlString();
```

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance46

Moderate activity, may be stable

Popularity25

Limited adoption so far

Community6

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

Recently: every ~590 days

Total

9

Last Release

409d ago

Major Versions

0.1.2 → 1.0.02018-12-04

1.0.2 → 2.0.02022-02-23

PHP version history (2 changes)0.1.0PHP ^7.1

2.0.0PHP &gt;=7.3

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1656037?v=4)[Victor Gonzalez](/maintainers/XzAeRo)[@XzAeRo](https://github.com/XzAeRo)

---

Top Contributors

[![XzAeRo](https://avatars.githubusercontent.com/u/1656037?v=4)](https://github.com/XzAeRo "XzAeRo (14 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yii-starter-kit-sitemaped/health.svg)

```
[![Health](https://phpackages.com/badges/yii-starter-kit-sitemaped/health.svg)](https://phpackages.com/packages/yii-starter-kit-sitemaped)
```

###  Alternatives

[hubertnnn/laravel-nova-field-dynamic-select

A Laravel Nova field.

22153.5k](/packages/hubertnnn-laravel-nova-field-dynamic-select)[bizley/ajaxdropdown

Bootstrap dropdown list with AJAX data.

1525.4k](/packages/bizley-ajaxdropdown)

PHPackages © 2026

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