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

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

sergeybruhin/dynamic-robots
===========================

Laravel Dynamic Robots Package

1.0.3(2y ago)0135MITPHPPHP ^7.4|^8.0

Since Jan 3Pushed 2y ago1 watchersCompare

[ Source](https://github.com/sergeybruhin/dynamic-robots)[ Packagist](https://packagist.org/packages/sergeybruhin/dynamic-robots)[ Docs](https://github.com/sergeybruhin/dynamic-robots)[ RSS](/packages/sergeybruhin-dynamic-robots/feed)WikiDiscussions master Synced 1w ago

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

Laravel Dynamic Robots.txt Package
==================================

[](#laravel-dynamic-robotstxt-package)

[![Latest Version on Packagist](https://camo.githubusercontent.com/9418e586db7aa060f741274cbec2abffa9ca38a279cef82ed1cd1c9a2a7c3b99/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73657267657962727568696e2f64796e616d69632d726f626f74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sergeybruhin/dynamic-robots)[![Total Downloads](https://camo.githubusercontent.com/0afd8486edb714062d1c7d0b59624f578d46fb378d3cdbb510f9aaead9dfd8a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73657267657962727568696e2f64796e616d69632d726f626f74732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/sergeybruhin/dynamic-robots)

Very basic and simple package to show different robots.txt files for different environments. Just create new directory and create there blade files with environment names. That's it!

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

[](#installation)

You can install the package via composer:

```
composer require sergeybruhin/dynamic-robots
```

### Publish Config

[](#publish-config)

```
php artisan vendor:publish --provider="SergeyBruhin\DynamicRobots\Providers\DynamicRobotsServiceProvider"
```

### Set robots blade files directory

[](#set-robots-blade-files-directory)

If you want to change robots.txt for production environment just add **production.blade.php** with robots.txt content to **resources/views/robots**.

```
return [
    /**
     * Custom robots blade files directory prefix without trailing dot
     * eg: robots
     * If empty, default robots.txt from package will be used
     */
    'directory' => 'robots',
];
```

### Create Default robots.txt

[](#create-default-robotstxt)

If there are no blade file for current environment, default.blade.php will be used. So don't forget to create it in **/resources/views/{your-directory}**!

### Default robots.txt from package if user robots.txt not exists

[](#default-robotstxt-from-package-if-user-robotstxt-not-exists)

```
User-agent: *
Disallow: /admin/*
Disallow: /nova/*

```

### ⚠️ If you have robots.txt in public folder don't forget to delete it!

[](#️-if-you-have-robotstxt-in-public-folder-dont-forget-to-delete-it)

### Testing (Not yet 💁‍♂️)

[](#testing-not-yet-‍️)

```
composer test
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

ToDo
----

[](#todo)

- Add ability to programmatically change robots files
- Add ability to set default rule set via config

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Sergey Bruhin](https://github.com/sergeybruhin)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

26

—

LowBetter than 40% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

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

Total

4

Last Release

903d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/08a6c60ed6a4cdd9dc4104bac89bd503265c085b15e530eb8616cc78b01db33c?d=identicon)[SergeyBruhin](/maintainers/SergeyBruhin)

---

Top Contributors

[![sergeybruhin](https://avatars.githubusercontent.com/u/8505172?v=4)](https://github.com/sergeybruhin "sergeybruhin (10 commits)")

---

Tags

laravelsergeybruhindynamic-robots

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20919.9k](/packages/stephenjude-filament-blog)[datomatic/nova-detached-actions

A Laravel Nova tool to allow for placing actions in the Nova toolbar detached from the checkbox selection mechanism.

12287.4k](/packages/datomatic-nova-detached-actions)

PHPackages © 2026

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