2017 © Pedro Peláez
 

symfony-bundle robots-txt-bundle

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

image

evheniy/robots-txt-bundle

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

  • Wednesday, November 4, 2015
  • by evheniy
  • Repository
  • 1 Watchers
  • 4 Stars
  • 7,387 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 5 % Grown

The README.md

RobotsTxtBundle

This bundle provides robots.txt generator for Symfony2, (*1)

knpbundles.com, (*2)

Latest Stable Version Total Downloads Latest Unstable Version License, (*3)

Build Status Coverage Status Scrutinizer Code Quality Build Status, (*4)

Installation

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

Or add to composer.json, (*5)

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

AppKernel:, (*6)

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

config.yml:, (*7)

robots_txt:
  - 'User-agent: *'

Or with sitemap:, (*8)

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

The last step, (*9)

app/console robots.txt:dump

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, (*10)

config_prod.yml:, (*11)

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

config_dev.yml:, (*12)

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

And run it for prod:, (*13)

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

And run it for dev:, (*14)

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

Or just, (*15)

app/console robots.txt:dump

License

This bundle is under the MIT license., (*16)

Документация на русском языке, (*17)

Demo, (*18)

[Build a robots.txt][4], (*19)

The Versions

04/11 2015

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony robots robots.txt google standards

04/11 2015

1.0.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

 

The Development Requires

symfony robots robots.txt google standards