Download the PHP package vipnytt/robotstagparser without Composer
On this page you can find all versions of the php package vipnytt/robotstagparser. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download vipnytt/robotstagparser
More information about vipnytt/robotstagparser
Files in vipnytt/robotstagparser
Download vipnytt/robotstagparser
More information about vipnytt/robotstagparser
Files in vipnytt/robotstagparser
Vendor vipnytt
Package robotstagparser
Short Description X-Robots-Tag HTTP header parser class
License MIT
Homepage https://github.com/VIPnytt/RobotsTagParser
Package robotstagparser
Short Description X-Robots-Tag HTTP header parser class
License MIT
Homepage https://github.com/VIPnytt/RobotsTagParser
Please rate this library. Is it a good library?
Informations about the package robotstagparser
X-Robots-Tag HTTP header parser
PHP class to parse X-Robots-Tag HTTP headers according to Google X-Robots-Tag HTTP header specifications.
Requirements:
Note: HHVM support is planned once facebook/hhvm#4277 is fixed.
Installation
The library is available via Composer. Add this to your composer.json
file:
Then run composer update
.
Getting Started
Basic example
Get all rules affecting you, this includes the following:
- All generic rules
- Rules specific to your User-Agent (if there is any)
Different approaches:
Get the HTTP headers by requesting an URL
Use your existing GuzzleHttp request
Provide HTTP headers as an string
Export all rules
Returns an array containing all rules for any User-Agent.
Directives:
- [x]
all
- There are no restrictions for indexing or serving. - [x]
none
- Equivalent tonoindex
andnofollow
. - [x]
noindex
- Do not show this page in search results and do not show a "Cached" link in search results. - [x]
nofollow
- Do not follow the links on this page. - [x]
noarchive
- Do not show a "Cached" link in search results. - [x]
nosnippet
- Do not show a snippet in the search results for this page. - [x]
noodp
- Do not use metadata from the Open Directory project for titles or snippets shown for this page. - [x]
notranslate
- Do not offer translation of this page in search results. - [x]
noimageindex
- Do not index images on this page. - [x]
unavailable_after
- Do not show this page in search results after the specified date/time.
Source: https://developers.google.com/webmasters/control-crawl-index/docs/robots_meta_tag
All versions of robotstagparser with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.6
guzzlehttp/guzzle Version 6.*
vipnytt/useragentparser Version ~1.0
ext-mbstring Version *
guzzlehttp/guzzle Version 6.*
vipnytt/useragentparser Version ~1.0
ext-mbstring Version *
The package vipnytt/robotstagparser contains the following files
Loading the files please wait ....