PHPackages                             djstarcom/laravel-robots-manager - 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. djstarcom/laravel-robots-manager

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

djstarcom/laravel-robots-manager
================================

Laravel robots.txt manager

v2.0.1(4y ago)02MITPHPPHP &gt;=7.2CI failing

Since Feb 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/DJStarCOM/laravel-robots-manager)[ Packagist](https://packagist.org/packages/djstarcom/laravel-robots-manager)[ RSS](/packages/djstarcom-laravel-robots-manager/feed)WikiDiscussions master Synced today

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

Laravel robots.txt manager
==========================

[](#laravel-robotstxt-manager)

[![Current Release](https://camo.githubusercontent.com/808570034d0d542d2396e8650c40f5c65bb4b65a5b1b56de7d38f3191cf097eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f646a73746172636f6d2f6c61726176656c2d726f626f74732d6d616e616765722e737667)](https://github.com/DJStarCOM/laravel-robots-manager/releases)[![Build Status](https://camo.githubusercontent.com/71e8afc462efbf1090cd51506077b58033827c9f355f409132551a5c4183f0fa/68747470733a2f2f7472617669732d63692e6f72672f444a53746172434f4d2f6c61726176656c2d726f626f74732d6d616e616765722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/DJStarCOM/laravel-robots-manager)[![Code Coverage](https://camo.githubusercontent.com/de9ffaeeb70f9f9a29a76343b69753a912956330e17f46f954c688f4293a9f5d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f444a53746172434f4d2f6c61726176656c2d726f626f74732d6d616e616765722f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/DJStarCOM/laravel-robots-manager/?branch=master)[![Code Climate](https://camo.githubusercontent.com/f141377ff9a09107b13b26c568b284cf10d3df5e7bd41d4674740e7ff380a4d4/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f444a53746172434f4d2f6c61726176656c2d726f626f74732d6d616e616765722f6261646765732f6770612e737667)](https://codeclimate.com/github/DJStarCOM/laravel-robots-manager)[![Test Coverage](https://camo.githubusercontent.com/39749941aeeeea26e4a03ca2884ec431548bb5967fe888590e1cbed35bbf2cc5/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f444a53746172434f4d2f6c61726176656c2d726f626f74732d6d616e616765722f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/DJStarCOM/laravel-robots-manager)

Installation
============

[](#installation)

First, install the package via composer:

```
composer require "djstarcom/laravel-robots-manager"

```

The package will automatically register itself.

Usage
=====

[](#usage)

Delete projects default public/robots.txt

Add the following to your routes file:

```
Route::get('robots.txt', function ()
{
    if (App::environment() == 'production') {
        // If on the live server, serve a nice, welcoming robots.txt.
        RobotsManager::addUserAgent('*');
        RobotsManager::addSitemap('sitemap.xml');
    } else {
        // If you're on any other server, tell everyone to go away.
        RobotsManager::addDisallow('*');
    }

    return Response::make(RobotsManager::generate(), 200, ['Content-Type' => 'text/plain']);
});
```

Refer to the [RobotsManager.php](src/RobotsManager.php) for API usage.

License
=======

[](#license)

[MIT](LICENSE)

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 73.3% 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 ~157 days

Total

4

Last Release

1791d ago

Major Versions

1.0.1 → 2.0.02021-06-15

PHP version history (2 changes)1.0.0PHP &gt;=7.1

2.0.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/1e612dd8656b2f610a9bc3f6e3656290363217e48e34f6951fbadb5bd770b242?d=identicon)[StarCOM](/maintainers/StarCOM)

---

Top Contributors

[![DJStarCOM](https://avatars.githubusercontent.com/u/1818603?v=4)](https://github.com/DJStarCOM "DJStarCOM (11 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (3 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

managerrobots.txtlaravel-robots-manager

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/djstarcom-laravel-robots-manager/health.svg)

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

###  Alternatives

[grumpydictator/firefly-iii

Firefly III: a personal finances manager.

22.8k69.3k](/packages/grumpydictator-firefly-iii)[firefly-iii/data-importer

Firefly III Data Import Tool.

7545.8k](/packages/firefly-iii-data-importer)[verschuur/laravel-robotstxt

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

43402.6k1](/packages/verschuur-laravel-robotstxt)

PHPackages © 2026

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