PHPackages                             enchikiben/yii2-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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. enchikiben/yii2-sitemap

ActiveYii2-extension[Parsing &amp; Serialization](/categories/parsing)

enchikiben/yii2-sitemap
=======================

Yii2 generation Sitemap XML

0.0.2(6y ago)79.7k1[1 issues](https://github.com/enchikiben/yii2-sitemap/issues)MITPHP

Since Nov 25Pushed 5y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (3)Used By (0)

yii2-sitemap
============

[](#yii2-sitemap)

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

```
php composer.phar require --prefer-dist "enchikiben/yii2-sitemap" "*"

```

or

```
"enchikiben/yii2-sitemap" : "*"
```

Configure
---------

[](#configure)

```
'modules' => [
    'sitemap' => [
        'class' => 'enchikiben\sitemap\Sitemap',
        'controllerDirAlias' => '@frontend/controllers'
    ],
],
```

Add a new rule for `urlManager` of your application's configuration file, for example:

```
'urlManager' => [
    'rules' => [
        ['pattern' => 'sitemap', 'route' => 'sitemap/default/index', 'suffix' => '.xml'],
    ],
],
```

Use
---

[](#use)

```
class SiteController extends Base
{

    /**
     * @sitemap priority=1
     */
    public function actionIndex()
    {
    }

    /**
     * @sitemap priority=0.8
     */
    public function actionConfidentiality()
    {
    }
}
```

or

```
class NewsController extends Base
{
    /**
     * @sitemap priority=0.5 changefreq=monthly route=['/news/view','id'=>$model->id] model=common\models\News condition=['status'=>1]
     */
    public function actionView($id)
    {

    }
}
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity27

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity52

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

Total

2

Last Release

2536d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/4eb9829931646e593da952b8f029087a368c5bcd4e4b2758385f316cdf676922?d=identicon)[EnChikiben](/maintainers/EnChikiben)

---

Top Contributors

[![enchikiben](https://avatars.githubusercontent.com/u/1251978?v=4)](https://github.com/enchikiben "enchikiben (5 commits)")

---

Tags

xmlyii2moduleSitemap

### Embed Badge

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

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

###  Alternatives

[presta/sitemap-bundle

A Symfony bundle that provides tools to build your application sitemap.

3929.4M28](/packages/presta-sitemap-bundle)[demi/sitemap-generator

Yii2 component for generate sitemap.xml files.

1427.0k](/packages/demi-sitemap-generator)[light/yii2-xmlparser

yii2 xml request parser

1974.7k](/packages/light-yii2-xmlparser)

PHPackages © 2026

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