2017 © Pedro Peláez
 

library robots

Generator robots.txt

image

steein/robots

Generator robots.txt

  • Friday, September 8, 2017
  • by Steein
  • Repository
  • 1 Watchers
  • 0 Stars
  • 21 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 5 % Grown

The README.md

Generator robots.txt

Generator of the text file "robots.txt", (*1)

The robots.txt file is a text file located in the root directory of the site, in which special instructions for search robots are written. These instructions may prohibit some sections or pages on the site from being indexed, indicate the correct "mirroring" of the domain, recommend the search robot to observe a certain time interval between downloading documents from the server, etc., (*2)

Installation

First, install the package via composer:, (*3)

composer require steein/robots

Or add the following to your composer.json in the require section and then run composer update to install it., (*4)

{
    "require": {
        "steein/robots": "1.4"
    }
}

Usage

default

use Steein\Robots\Robots;
use Steein\Robots\RobotsInterface;

Robots::getInstance()
    ->host("www.steein.ru")
    ->userAgent("*")
    ->allow("one","two")
    ->disallow("one","two","three")
    ->each(function (RobotsInterface $robots) {
        $robots->userAgent("Google")
            ->comment("Comment Google")
            ->spacer()
            ->allow("testing");
    })->each(function (RobotsInterface $robots) {
        $robots->userAgent("Bind")
            ->comment("Comment Bind")
            ->spacer()
            ->allow("testing");
    })->create(); // or render()

Testing

$ phpunit

The Versions

08/09 2017

dev-master

9999999-dev

Generator robots.txt

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

robots.txt steein

08/09 2017

1.4

1.4.0.0

Generator robots.txt

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

robots.txt steein

24/08 2017

1.3

1.3.0.0

Generator robots.txt

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

robots.txt steein

28/07 2017

1.2

1.2.0.0

Generator robots.txt

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

robots.txt steein

28/07 2017

1.1

1.1.0.0

Generator robots.txt

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

robots.txt steein

28/07 2017

1.0

1.0.0.0

Generator robots.txt

  Sources   Download

MIT

The Requires

  • php ^7.0

 

The Development Requires

robots.txt steein