Download the PHP package evheniy/robots-txt-bundle without Composer
On this page you can find all versions of the php package evheniy/robots-txt-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download evheniy/robots-txt-bundle
More information about evheniy/robots-txt-bundle
Files in evheniy/robots-txt-bundle
Download evheniy/robots-txt-bundle
More information about evheniy/robots-txt-bundle
Files in evheniy/robots-txt-bundle
Vendor evheniy
Package robots-txt-bundle
Short Description The RobotsTxtBundle adds the ability to generate robots.txt file to your application.
License MIT
Package robots-txt-bundle
Short Description The RobotsTxtBundle adds the ability to generate robots.txt file to your application.
License MIT
Please rate this library. Is it a good library?
Informations about the package robots-txt-bundle
RobotsTxtBundle
This bundle provides robots.txt generator for Symfony2
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
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
This bundle is under the MIT license.
All versions of robots-txt-bundle with dependencies
PHP Build Version
Package Version
The package evheniy/robots-txt-bundle contains the following files
Loading the files please wait ...

