PHPackages                             nickmoline/robots-checker - 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. nickmoline/robots-checker

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nickmoline/robots-checker
=========================

Class to check a URL for robots exclusion using all possible methods of robots exclusion

v1.0.5(8y ago)29943[1 issues](https://github.com/nickmoline/robots-checker/issues)MITPHPPHP &gt;=5.5.9

Since Dec 26Pushed 4y ago6 watchersCompare

[ Source](https://github.com/nickmoline/robots-checker)[ Packagist](https://packagist.org/packages/nickmoline/robots-checker)[ Docs](https://github.com/nickmoline/robots-checker)[ RSS](/packages/nickmoline-robots-checker/feed)WikiDiscussions master Synced today

READMEChangelog (5)Dependencies (7)Versions (8)Used By (0)

Robots Exclusion Protocol Checking Classes v1.0.5 [![Build Status](https://camo.githubusercontent.com/d9249763f9302176aa5bc36fd8ea53058bc47521eefc082d364d5be164592d7a/68747470733a2f2f7472617669732d63692e6f72672f6e69636b6d6f6c696e652f726f626f74732d636865636b65722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/nickmoline/robots-checker)
============================================================================================================================================================================================================================================================================================================================================================

[](#robots-exclusion-protocol-checking-classes-v105-)

These classes allow you to check all of the different ways you can exclude a URL from search engines.

Classes
-------

[](#classes)

You can instantiate the following classes:

- `NickMoline\Robots\RobotsTxt` : Checks the corresponding robots.txt file for a url
- `NickMoline\Robots\Status` : Checks the HTTP Status code for an indexable URL
- `NickMoline\Robots\Header` : Checks the HTTP `X-Robots-Tag` Header
- `NickMoline\Robots\Meta` : Checks the `` tag (as well as bot specific tags)
- `NickMoline\Robots\All` : Wrapper class that will run all of the above checks

Example Usage
-------------

[](#example-usage)

```
