PHPackages                             svetamor/robots\_component - 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. svetamor/robots\_component

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

svetamor/robots\_component
==========================

create a file robots.txt

1.0.1(6y ago)02BSD-3-ClausePHP

Since Aug 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/SvetaMor/robots_component)[ Packagist](https://packagist.org/packages/svetamor/robots_component)[ RSS](/packages/svetamor-robots-component/feed)WikiDiscussions master Synced 2w ago

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

robots\_component
=================

[](#robots_component)

В конфигурации прописать (пример):

```
'container' => [
    'definitions' => [
        \app\vendor\svetamor\robots\interfaces\ICreatingFile::class => [
            'class' => \app\vendor\svetamor\robots\CreatingTxt::class,
            'filePath' => '/robots.txt',
        ],
    ],
],
'modules' => [
        'robots' => [
            'class' => '\app\modules\Module',
            'components'    => [
                'robotsComponent' => [
                    'class' => \app\vendor\svetamor\robots\RobotsComponent::class,
                    'userAgent' => [
                        '*' => [
                            'Disallow' => [
                                '/articles',
                                '/logs',
                            ],
                            'Allow' => [
                                //..
                            ],
                        ],
                        'WebBot' => [
                            'Disallow' => [
                                '/',
                            ],
                        ],
                    ],
                    'host' => 'site.ru',
                    'sitemap' => 'http://site.ru/sitemap.xml',
                ],
            ],
        ],
    ],

```

в контроллере:

```
$module = \Yii::$app->getModule('robots');

$response = \Yii::$app->response;
$response->format = \yii\web\Response::FORMAT_RAW;
$response->headers->set('Content-Type', 'text/plain');

return $module->robotsComponent->render();

```

###  Health Score

25

—

LowBetter than 36% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

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

Total

2

Last Release

2516d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/51384975?v=4)[SvetaMor](/maintainers/SvetaMor)[@SvetaMor](https://github.com/SvetaMor)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/svetamor-robots-component/health.svg)

```
[![Health](https://phpackages.com/badges/svetamor-robots-component/health.svg)](https://phpackages.com/packages/svetamor-robots-component)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)

PHPackages © 2026

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