PHPackages                             nepttune/robots - 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. nepttune/robots

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

nepttune/robots
===============

Robots generator component

v2.0.2(6y ago)25.2k11MITPHP

Since Apr 17Pushed 5y ago1 watchersCompare

[ Source](https://github.com/infinityloop-dev/robots)[ Packagist](https://packagist.org/packages/nepttune/robots)[ Docs](https://www.peldax.com)[ RSS](/packages/nepttune-robots/feed)WikiDiscussions master Synced 2mo ago

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

Robots
======

[](#robots)

🔧 Robots generator component

Introduction
------------

[](#introduction)

This componenet automaticaly generates robots from parameters in configuration.

Dependencies
------------

[](#dependencies)

- [nette/application](https://github.com/nette/application)

How to use
----------

[](#how-to-use)

- Register `\Nepttune\Component\IRobotsFactory` as service in cofiguration file, inject it into presenter, write `createComponent` method and use macro `{control}` in template file.
    - Just as any other component.
    - You need to pass robots configuration to factory service.
    - Content type is automaticaly set to `text/plain`.
- Modify parameters to accomplish your needs.

### Example configuration

[](#example-configuration)

```
services:
    robotsFactory:
        implement: Nepttune\Component\IRobotsFactory
        arguments:
          - '%robots%'
parameters:
    robots:
        all:
            name: '*'
            disallow:
        google:
            name 'GoogleBot'
            disallow:
              - '/example'
              - '/example2'

```

### Example presenter

[](#example-presenter)

```
class ExamplePresenter implements IPresenter
{
    /** @var  \Nepttune\Component\IRobotsFactory */
    protected $iRobotsFactory;

    public function __construct(\Nepttune\Component\IRobotsFactory $IRobotsFactory)
    {
        $this->iRobotsFactory = $IRobotsFactory;
    }

    protected function createComponentRobots() : \Nepttune\Component\Robots
    {
        return $this->iRobotsFactory->create();
    }
}

```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity69

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

Recently: every ~141 days

Total

9

Last Release

2377d ago

Major Versions

v1.2 → v2.02019-04-18

### Community

Maintainers

![](https://www.gravatar.com/avatar/00654c913028f8d25a226eb2ddf368e1b999bf72fa4f77dbd1449c1df218756c?d=identicon)[peldax](/maintainers/peldax)

---

Top Contributors

[![peldax](https://avatars.githubusercontent.com/u/10790033?v=4)](https://github.com/peldax "peldax (25 commits)")

---

Tags

componentnettephprobots-txt

### Embed Badge

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

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

###  Alternatives

[nette/code-checker

✅ Nette CodeChecker: A simple tool to check source code against a set of Nette coding standards.

881.7M6](/packages/nette-code-checker)[contributte/menu-control

Menu control for Nette framework

29108.6k1](/packages/contributte-menu-control)[carrooi/nette-menu

Menu control for Nette framework

2950.0k1](/packages/carrooi-nette-menu)

PHPackages © 2026

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