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

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

jazzman/php-robots
==================

Generator robots.txt

2.0.1(2y ago)0418[1 PRs](https://github.com/Jazz-Man/php-robots/pulls)MITPHPPHP ^8.1

Since Jul 28Pushed 1y agoCompare

[ Source](https://github.com/Jazz-Man/php-robots)[ Packagist](https://packagist.org/packages/jazzman/php-robots)[ RSS](/packages/jazzman-php-robots/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (10)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 jazzman/php-robots

```

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

```
{
    "require": {
        "jazzman/php-robots": "2.0"
    }
}
```

Usage
-----

[](#usage)

### default

[](#default)

```
use JazzMan\Robots\Robots;
use JazzMan\Robots\RobotsInterface;

Robots::getInstance()
    ->host("www.site.com")
    ->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

35

—

LowBetter than 80% of packages

Maintenance29

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity78

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

Recently: every ~554 days

Total

7

Last Release

1000d ago

Major Versions

1.4 → 2.0.02023-08-22

PHP version history (2 changes)1.0PHP ^7.0

2.0.0PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/bde0917196a65a6134bf7aa9d1b3969ae4ef3b92907662fdf68070d033de6843?d=identicon)[Jazz-Man](/maintainers/Jazz-Man)

---

Top Contributors

[![Jazz-Man](https://avatars.githubusercontent.com/u/6892898?v=4)](https://github.com/Jazz-Man "Jazz-Man (16 commits)")

---

Tags

robots.txt

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/jazzman-php-robots/health.svg)](https://phpackages.com/packages/jazzman-php-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)
