PHPackages                             bakiro/laravel-5-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. bakiro/laravel-5-robots

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

bakiro/laravel-5-robots
=======================

Robots.txt Generator for Laravel 5

0.1.0(6y ago)07.3k1MITPHPPHP &gt;=5.4.0CI failing

Since Apr 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/bakiro/laravel-5-robots)[ Packagist](https://packagist.org/packages/bakiro/laravel-5-robots)[ RSS](/packages/bakiro-laravel-5-robots/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

robots.txt Generator for Laravel 5
==================================

[](#robotstxt-generator-for-laravel-5)

This is a fork of . It appears development has stalled on the original repository.

The purpose of this fork is to introduce Laravel 5 compatibility and PSR-4 and PSR-2 (for Laravel 5.1).

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

[](#installation)

Step 1: Composer
----------------

[](#step-1-composer)

Add the package to your `composer.json`:

```
{
    "require": {
        "bakiro/laravel-5-robots": "~0.1.0"
    }
}

```

Step 2: Configuration
---------------------

[](#step-2-configuration)

Add the following to your `config/app.php` in the `providers` array:

```
'Bakiro\Robots\RobotsServiceProvider',

```

You can also optionally add the following to the `aliases` array:

```
'Robots' => 'Bakiro\Robots\RobotsFacade',

```

Usage
=====

[](#usage)

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.
        Robots::addUserAgent('*');
        Robots::addSitemap('sitemap.xml');
    } else {
        // If you're on any other server, tell everyone to go away.
        Robots::addDisallow('*');
    }

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

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

License
=======

[](#license)

[MIT](LICENSE)

###  Health Score

24

—

LowBetter than 31% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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

Unknown

Total

1

Last Release

2262d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13702106?v=4)[Gerardo Cignarella Godoy](/maintainers/bakiro)[@bakiro](https://github.com/bakiro)

---

Top Contributors

[![bakiro](https://avatars.githubusercontent.com/u/13702106?v=4)](https://github.com/bakiro "bakiro (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bakiro-laravel-5-robots/health.svg)

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

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M345](/packages/psalm-plugin-laravel)[renatomarinho/laravel-page-speed

Laravel Page Speed

2.5k1.7M11](/packages/renatomarinho-laravel-page-speed)[illuminate/pagination

The Illuminate Pagination package.

12234.1M1.0k](/packages/illuminate-pagination)[illuminate/pipeline

The Illuminate Pipeline package.

9349.2M282](/packages/illuminate-pipeline)[illuminate/redis

The Illuminate Redis package.

8314.6M374](/packages/illuminate-redis)[illuminate/cookie

The Illuminate Cookie package.

244.6M137](/packages/illuminate-cookie)

PHPackages © 2026

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