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

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

steein/robots
=============

Generator robots.txt

1.4(8y ago)26.3k2MITPHPPHP ^7.0

Since Jul 28Pushed 8y agoCompare

[ Source](https://github.com/SteeinRu/php-robots)[ Packagist](https://packagist.org/packages/steein/robots)[ RSS](/packages/steein-robots/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (5)Dependencies (1)Versions (6)Used By (0)

Generator robots.txt
====================

[](#generator-robotstxt)

Generator of the text file "robots.txt"

***The robots.txt*** file is a text file located in the root directory of the site, in which special instructions for search robots are written. These instructions may prohibit some sections or pages on the site from being indexed, indicate the correct "mirroring" of the domain, recommend the search robot to observe a certain time interval between downloading documents from the server, etc.

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

[](#installation)

First, install the package via composer:

```
composer require steein/robots

```

Or add the following to your `composer.json` in the require section and then run `composer` update to install it.

```
{
    "require": {
        "steein/robots": "1.4"
    }
}
```

Usage
-----

[](#usage)

### default

[](#default)

```
use Steein\Robots\Robots;
use Steein\Robots\RobotsInterface;

Robots::getInstance()
    ->host("www.steein.ru")
    ->userAgent("*")
    ->allow("one","two")
    ->disallow("one","two","three")
    ->each(function (RobotsInterface $robots) {
        $robots->userAgent("Google")
            ->comment("Comment Google")
            ->spacer()
            ->allow("testing");
    })->each(function (RobotsInterface $robots) {
        $robots->userAgent("Bind")
            ->comment("Comment Bind")
            ->spacer()
            ->allow("testing");
    })->create(); // or render()
```

Testing
-------

[](#testing)

```
$ phpunit

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Total

5

Last Release

3170d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/25b3e90822a52d3d64e79e88c911e20e16f8d08ceb759f52ad75884a85a8b302?d=identicon)[Steein](/maintainers/Steein)

---

Tags

laravel-packagephpphp7robotsrobots-generatorrobots-txtsteein-robotsrobots.txtsteein

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[verschuur/laravel-robotstxt

Set the robots.txt content dynamically based on the Laravel app environment.

43402.6k1](/packages/verschuur-laravel-robotstxt)[novactive/ezseobundle

Novactive eZ SEO Bundle is an Ibexa Platform bundle for SEO simplications. metas, sitemaps, robots.txt, etc.

26252.0k2](/packages/novactive-ezseobundle)[owenmelbz/laravel-robots-txt

Laravel 5.x helpers for a semi-automated robots.txt and meta tags

151.1k](/packages/owenmelbz-laravel-robots-txt)

PHPackages © 2026

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