2017 © Pedro Peláez
 

library robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

image

spatie/robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

  • Wednesday, May 9, 2018
  • by Spatie
  • Repository
  • 3 Watchers
  • 19 Stars
  • 17,225 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 8 Versions
  • 451 % Grown

The README.md

Parse robots.txt, robots meta and headers

Latest Version on Packagist Tests Quality Score Total Downloads, (*1)

Determine if a page may be crawled from robots.txt, robots meta tags and robot headers., (*2)

Support us

, (*3)

We invest a lot of resources into creating best in class open source packages. You can support us by buying one of our paid products., (*4)

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on our contact page. We publish all received postcards on our virtual postcard wall., (*5)

Installation

You can install the package via composer:, (*6)

composer require spatie/robots-txt

Usage

``` php $robots = Spatie\Robots\Robots::create();, (*7)

$robots->mayIndex('https://www.spatie.be/nl/admin');, (*8)

$robots->mayFollowOn('https://www.spatie.be/nl/admin');, (*9)


You can also specify a user agent: ``` php $robots = Spatie\Robots\Robots::create('UserAgent007');

By default, Robots will look for a robots.txt file on https://host.com/robots.txt. Another location can be specified like so:, (*10)

``` php $robots = Spatie\Robots\Robots::create() ->withTxt('https://www.spatie.be/robots-custom.txt');, (*11)

$robots = Spatie\Robots\Robots::create() ->withTxt(DIR . '/public/robots.txt');, (*12)


### Testing ``` bash composer test

Changelog

Please see CHANGELOG for more information what has changed recently., (*13)

Contributing

Please see CONTRIBUTING for details., (*14)

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities., (*15)

Postcardware

You're free to use this package, but if it makes it to your production environment we highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using., (*16)

Our address is: Spatie, Kruikstraat 22, 2018 Antwerp, Belgium., (*17)

We publish all received postcards on our company website., (*18)

Credits

License

The MIT License (MIT). Please see License File for more information., (*19)

The Versions

09/05 2018

dev-master

9999999-dev https://github.com/spatie/robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

spatie robots-txt

08/05 2018

1.0.1

1.0.1.0 https://github.com/spatie/robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

spatie robots-txt

07/05 2018

1.0.0

1.0.0.0 https://github.com/spatie/robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

spatie robots-txt

04/05 2018

0.1.3

0.1.3.0 https://github.com/spatie/robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

spatie robots-txt

04/05 2018

0.1.2

0.1.2.0 https://github.com/spatie/robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

spatie robots-txt

04/05 2018

0.1.1

0.1.1.0 https://github.com/spatie/robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

spatie robots-txt

09/03 2018

0.1.0

0.1.0.0 https://github.com/spatie/robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

spatie robots-txt

09/03 2018

dev-analysis-zdm1vp

dev-analysis-zdm1vp https://github.com/spatie/robots-txt

Determine if a page may be crawled from robots.txt and robots meta tags

  Sources   Download

MIT

The Requires

  • php ^7.1

 

The Development Requires

spatie robots-txt