PHPackages                             evheniy/robots-txt-bundle - 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. evheniy/robots-txt-bundle

ActiveSymfony-bundle[Utility &amp; Helpers](/categories/utility)

evheniy/robots-txt-bundle
=========================

The RobotsTxtBundle adds the ability to generate robots.txt file to your application.

1.0.0(10y ago)520.0k1MITPHPPHP &gt;=5.3.0

Since Nov 4Pushed 10y ago1 watchersCompare

[ Source](https://github.com/evheniy/RobotsTxtBundle)[ Packagist](https://packagist.org/packages/evheniy/robots-txt-bundle)[ RSS](/packages/evheniy-robots-txt-bundle/feed)WikiDiscussions master Synced 1mo ago

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

RobotsTxtBundle
===============

[](#robotstxtbundle)

This bundle provides robots.txt generator for Symfony2

[![knpbundles.com](https://camo.githubusercontent.com/7e45b6aed9d5ce4ea92fb66bb07c47d7b4be5c2d9480704141ab78ff5f88f486/687474703a2f2f6b6e7062756e646c65732e636f6d2f657668656e69792f526f626f747354787442756e646c652f6261646765)](http://knpbundles.com/evheniy/RobotsTxtBundle)

[![Latest Stable Version](https://camo.githubusercontent.com/4548ecbd54c62c7508007915b5e6f0860f52b99e06741ce67f3a9b804cd51ce0/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f726f626f74732d7478742d62756e646c652f762f737461626c65)](https://packagist.org/packages/evheniy/robots-txt-bundle) [![Total Downloads](https://camo.githubusercontent.com/23194a4ff06d969dc42ae9e25ec7241a7291441f8661be29e8b11313b6187eba/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f726f626f74732d7478742d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/evheniy/robots-txt-bundle) [![Latest Unstable Version](https://camo.githubusercontent.com/48bbbc748eeddd9729d60da44dcffa462d3a4620bae76bfb84cda8770f6b0946/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f726f626f74732d7478742d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/evheniy/robots-txt-bundle) [![License](https://camo.githubusercontent.com/68643325a1b5dc1a1fc8dda23973073ae3428526f8239b75bdd243d80ee147d0/68747470733a2f2f706f7365722e707567782e6f72672f657668656e69792f726f626f74732d7478742d62756e646c652f6c6963656e7365)](https://packagist.org/packages/evheniy/robots-txt-bundle)

[![Build Status](https://camo.githubusercontent.com/afb944d149f1e32a12f48cabf9e310ac47f522b5e2bd044d4732fd743bb43165/68747470733a2f2f7472617669732d63692e6f72672f657668656e69792f526f626f747354787442756e646c652e737667)](https://travis-ci.org/evheniy/RobotsTxtBundle)[![Coverage Status](https://camo.githubusercontent.com/0ee20b3314206a2489e937936c0288452fc770953cc3a06cfd01896aed4570dc/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f657668656e69792f526f626f747354787442756e646c652f62616467652e7376673f6272616e63683d6d617374657226736572766963653d676974687562)](https://coveralls.io/github/evheniy/RobotsTxtBundle?branch=master)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/0ac60b68c2e37dc19529f830fbae62249b3ac6e5be02ad34900716c1e25b42a5/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f526f626f747354787442756e646c652f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/RobotsTxtBundle/?branch=master)[![Build Status](https://camo.githubusercontent.com/3fc37a7775db62aeb34baa109ef5559f67af14682e41998cdabfc3a2011e10a8/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f657668656e69792f526f626f747354787442756e646c652f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/evheniy/RobotsTxtBundle/build-status/master)

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

[](#installation)

```
$ composer require evheniy/robots-txt-bundle "1.*"

```

Or add to composer.json

```
"evheniy/robots-txt-bundle": "1.*"

```

AppKernel:

```
public function registerBundles()
    {
        $bundles = array(
            ...
            new Evheniy\RobotsTxtBundle\RobotsTxtBundle(),
            ...
        );
        ...
...

```

config.yml:

```
robots_txt:
  - 'User-agent: *'

```

Or with sitemap:

```
robots_txt:
  - 'User-agent: *'
  - 'Sitemap: http://test.com/sitemap.xml'

```

The last step

```
app/console robots.txt:dump

```

Using different environments
----------------------------

[](#using-different-environments)

The main idea is to use robots.txt for different environments, for example: for *dev* hiding project from indexing robots like Google

**config\_prod.yml**:

```
robots_txt:
  - 'User-agent: *'
  - 'Sitemap: http://test.com/sitemap.xml'

```

**config\_dev.yml**:

```
robots_txt:
  - 'User-agent: *'
  - 'Disallow: /'

```

And run it for **prod**:

```
app/console robots.txt:dump --env=prod

```

And run it for **dev**:

```
app/console robots.txt:dump --env=dev

```

Or just

```
app/console robots.txt:dump

```

License
-------

[](#license)

This bundle is under the [MIT](https://github.com/evheniy/RobotsTxtBundle/blob/master/Resources/meta/LICENSE) license.

[Документация на русском языке](http://makedev.org/articles/symfony/bundles/robots_txt_bundle.html)

[Demo](http://makedev.org/robots.txt)

[Build a robots.txt](https://support.google.com/webmasters/answer/6062596)

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

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

3839d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8e25a30b83f9493998640ece1013e05059e4dd4ac55a482c650eb760ac37d843?d=identicon)[evheniy](/maintainers/evheniy)

---

Top Contributors

[![evheniy](https://avatars.githubusercontent.com/u/1702242?v=4)](https://github.com/evheniy "evheniy (7 commits)")

---

Tags

symfonyrobotsrobots.txtGoogle standards

### Embed Badge

![Health badge](/badges/evheniy-robots-txt-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/evheniy-robots-txt-bundle/health.svg)](https://phpackages.com/packages/evheniy-robots-txt-bundle)
```

PHPackages © 2026

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