2017 © Pedro Peláez
 

library http-status-check

CLI tool to crawl a website and check HTTP status code

image

spatie/http-status-check

CLI tool to crawl a website and check HTTP status code

  • Tuesday, June 5, 2018
  • by Spatie
  • Repository
  • 14 Watchers
  • 342 Stars
  • 6,585 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 44 Forks
  • 0 Open issues
  • 17 Versions
  • 21 % Grown

The README.md

Check the HTTP status code of all links on a website

Latest Version on Packagist Software License Tests Total Downloads, (*1)

This repository provides a tool to check the HTTP status code of every link on a given website., (*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

This package can be installed via Composer:, (*6)

composer global require spatie/http-status-check

Usage

This tool will scan all links on a given website:, (*7)

http-status-check scan https://example.com

It outputs a line per link found. Here's an example on Laracast website scan:, (*8)

screenshot, (*9)

When the crawling process is finished a summary will be shown., (*10)

By default the crawler uses 10 concurrent connections to speed up the crawling process. You can change that number by passing a different value to the --concurrency option:, (*11)

http-status-check scan https://example.com --concurrency=20

You can also write all urls that gave a non-2xx or non-3xx response to a file:, (*12)

http-status-check scan https://example.com --output=log.txt

When the crawler finds a link to an external website it will by default crawl that link as well. If you don't want the crawler to crawl such external urls use the --dont-crawl-external-links option:, (*13)

http-status-check scan https://example.com --dont-crawl-external-links

By default, requests timeout after 10 seconds. You can change this by passing the number of seconds to the --timeout option:, (*14)

http-status-check scan https://example.com --timeout=30

By default, the crawler will respect robots data. You can ignore them though with the --ignore-robots option:, (*15)

http-status-check scan https://example.com --ignore-robots

If your site requires a basic authentification, you can use the --auth option:, (*16)

http-status-check scan https://example.com --auth=username:password

Testing

To run the tests, first make sure you have Node.js installed. Then start the included node based server in a separate terminal window:, (*17)

cd tests/server
npm install
node server.js

With the server running, you can start testing:, (*18)

vendor/bin/phpunit

Changelog

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

Contributing

Please see CONTRIBUTING for details., (*20)

Security

If you've found a bug regarding security please mail security@spatie.be instead of using the issue tracker., (*21)

Credits

License

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

The Versions

05/06 2018

dev-master

9999999-dev https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

22/05 2018

3.1.1

3.1.1.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

22/05 2018

dev-analysis-8PnEvK

dev-analysis-8PnEvK https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

09/05 2018

3.1.0

3.1.0.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

24/12 2017

3.0.0

3.0.0.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

22/12 2017

2.5.0

2.5.0.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

16/10 2017

2.4.0

2.4.0.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

10/02 2017

2.3.0

2.3.0.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

05/02 2017

2.2.1

2.2.1.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

28/01 2017

2.2.0

2.2.0.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

23/01 2017

2.1.1

2.1.1.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

16/12 2016

2.1.0

2.1.0.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

05/12 2016

2.0.0

2.0.0.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

07/10 2016

1.0.2

1.0.2.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

10/11 2015

1.0.1

1.0.1.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

03/11 2015

1.0.0

1.0.0.0 https://github.com/spatie/http-status-checker

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie

02/11 2015

0.0.1

0.0.1.0 https://github.com/spatie/http-status-check

CLI tool to crawl a website and check HTTP status code

  Sources   Download

MIT

The Requires

 

The Development Requires

http check crawler status spatie