PHPackages                             locaine/lcn-x-robots-tag-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. [HTTP &amp; Networking](/categories/http)
4. /
5. locaine/lcn-x-robots-tag-bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

locaine/lcn-x-robots-tag-bundle
===============================

Easily control X-Robots-Tag HTTP Headers

1.0.0(10y ago)125MITPHPPHP &gt;=5.5

Since Dec 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/FaiblUG/LcnXRobotsTagBundle)[ Packagist](https://packagist.org/packages/locaine/lcn-x-robots-tag-bundle)[ RSS](/packages/locaine-lcn-x-robots-tag-bundle/feed)WikiDiscussions master Synced today

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

LcnXRobotsTagBundle
===================

[](#lcnxrobotstagbundle)

[![Build Status](https://camo.githubusercontent.com/95f791084afa1fca0c8358299e4f601a1dd617d068759fb6363902dbb92536cc/68747470733a2f2f7472617669732d63692e6f72672f466169626c55472f4c636e58526f626f747354616742756e646c652e737667)](https://travis-ci.org/FaiblUG/LcnXRobotsTagBundle)

Easily manage [X-Robots-Tag http header](https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag) (noindex, nofollow) in Symfony2.

- lets you define a default value for the X-Robots-Tag response header
- lets you define the value for the X-Robots-Tag response header for requests that require certain user roles
- lets you manually control the value for the X-Robots-Tag response header

Installation
============

[](#installation)

Step 1: Download the Bundle
---------------------------

[](#step-1-download-the-bundle)

Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:

```
$ composer require locaine/lcn-x-robots-tag-bundle "~1"
```

This command requires you to have Composer installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Step 2: Enable the Bundle
-------------------------

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `app/AppKernel.php` file of your project:

```
