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

ActiveLibrary

sagsoz06/laravel-5-robots
=========================

Robots.txt Generator for Laravel 5

0.1.1(5y ago)0561MITPHPPHP &gt;=5.4.0CI failing

Since May 31Pushed 5y ago1 watchersCompare

[ Source](https://github.com/aniliso/laravel-5-robots)[ Packagist](https://packagist.org/packages/sagsoz06/laravel-5-robots)[ RSS](/packages/sagsoz06-laravel-5-robots/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (3)Versions (2)Used By (1)

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

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

[![Current Release](https://camo.githubusercontent.com/b8d548ad6bd482cbe35fe5c39013fb7324164d854fe6d757727b1cc925cf21b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f656c6c69737468656465762f6c61726176656c2d352d726f626f74732e737667)](https://github.com/ellisthedev/laravel-5-robots/releases)[![Total Downloads](https://camo.githubusercontent.com/b90c715ebe20bbbdc747f2ed98bab56b2d74dd50878e9d529aa4c6ba43c2e281/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656c6c69737468656465762f6c61726176656c2d352d726f626f74732e737667)](https://packagist.org/packages/ellisthedev/laravel-5-robots)[![Build Status](https://camo.githubusercontent.com/5e972850e973b5c82de59f06b536e389e30f6bc3c37be71402d6797ec90e535e/68747470733a2f2f7472617669732d63692e6f72672f656c6c69737468656465762f6c61726176656c2d352d726f626f74732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/ellisthedev/laravel-5-robots)[![Code Climate](https://camo.githubusercontent.com/3e3593723ed9085d95a8251ced965368c43fe4811b3865dfee8d097a4a6a01ae/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f656c6c69737468656465762f6c61726176656c2d352d726f626f74732f6261646765732f6770612e737667)](https://codeclimate.com/github/ellisthedev/laravel-5-robots)[![Test Coverage](https://camo.githubusercontent.com/e43992bf780cda61abd33339d24f297ad9cb1d83b18ed660421b1df06314599c/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f656c6c69737468656465762f6c61726176656c2d352d726f626f74732f6261646765732f636f7665726167652e737667)](https://codeclimate.com/github/ellisthedev/laravel-5-robots)

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": {
        "ellisthedev/laravel-5-robots": "~0.1.0"
    }
}

```

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

[](#step-2-configuration)

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

```
'EllisTheDev\Robots\RobotsServiceProvider',

```

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

```
'Robots' => 'EllisTheDev\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

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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

2173d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/97d293b3dd3a4e7655fb8b6c0245cb27adf9857bf3400df1730bbcf51d6be27a?d=identicon)[sagsoz06](/maintainers/sagsoz06)

---

Top Contributors

[![sagsoz06](https://avatars.githubusercontent.com/u/306175?v=4)](https://github.com/sagsoz06 "sagsoz06 (3 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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