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

ActiveLibrary

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 yesterday

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 32% 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

2210d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/73aa60157ca2f30e6955d4377010a505e9d6ec66c81949c7f19988c6b575b0ad?d=identicon)[bakiro](/maintainers/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

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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