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

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

grozzzny/sitemap
================

Sitemap module for Yii2

v2.0(5y ago)1200MITPHP

Since Jun 5Pushed 5y ago1 watchersCompare

[ Source](https://github.com/grozzzny/sitemap)[ Packagist](https://packagist.org/packages/grozzzny/sitemap)[ RSS](/packages/grozzzny-sitemap/feed)WikiDiscussions v2 Synced today

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

Sitemap module for yii2
=======================

[](#sitemap-module-for-yii2)

Installation guide
------------------

[](#installation-guide)

```
$ php composer.phar require grozzzny/sitemap "v2.0"
```

Add console config

```
  'aliases' => [
        '@webroot' => '@app/web',
  ],
   'components' => [
          'urlManager' => [
              'enablePrettyUrl' => true,
              'showScriptName' => false,
              'hostInfo' => 'my-site.ru',
              'scriptUrl' => '',
              'baseUrl' => ''
          ],
      ],
  'modules' => [
        'sitemap' => [
            'class' => 'grozzzny\sitemap\SitemapModule',
            'domain' => 'https://my-site.ru',
            'generatedByLink' => 'https://pr-kenig.ru',
            'generatedByName' => 'PRkenig',
            'controllerMap' => [
                'console' => 'app\commands\SitemapController'
            ]
        ]
    ],
```

CRON

```
php yii sitemap/console/update
```

Example app\\commands\\SitemapController

```
class SitemapController extends ConsoleController
{
    public $lastmodStaticPage = ''; // Y-m-d

    public $staticPages = [
        [
            'loc' => '/about', // /about
            'lastmod' => '2020-08-19', // Y-m-d
            'changefreq' => Sitemap::CHANGEFREQ_MONTHLY,
            'priority' => Sitemap::PRIORITY_60,
        ],
    ];

    protected function dataSitemap()
    {
        $this->generateArticles();
    }

    protected function generateArticles()
    {
        $models = AdminArticles::find()
            ->andWhere(['active' => true])
            ->all();

        foreach($models as $model){
            $this->data_sitemap['articles'][] = array(
                'loc'           => $model->link,
                'lastmod'       => Sitemap::lastmodFormat($model->updated_at),
                'changefreq'    => Sitemap::CHANGEFREQ_MONTHLY,
                'priority'      => Sitemap::PRIORITY_60,
            );
        }
    }
}
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

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

2091d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/554162fffed79306459e44cdded778e493d695f0229c405b67a717697ab1cc5d?d=identicon)[grozzzny](/maintainers/grozzzny)

---

Top Contributors

[![grozzzny](https://avatars.githubusercontent.com/u/19452327?v=4)](https://github.com/grozzzny "grozzzny (7 commits)")

---

Tags

cmsmoduleyiieasyii2CMS

### Embed Badge

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

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

###  Alternatives

[rmrevin/yii2-comments

Comments module for Yii2

5130.8k](/packages/rmrevin-yii2-comments)

PHPackages © 2026

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