Download the PHP package webhubworks/site-crawler without Composer

On this page you can find all versions of the php package webhubworks/site-crawler. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package site-crawler

Site Crawler

Use this site crawler as a quick way to crawl any website. This is useful to detect any slow pages or pages with HTTP errors.

Please use this crawler responsibly. Do not use it to crawl websites that you do not own or have permission to crawl.

Installation

Run composer global require webhubworks/site-crawler -W in your terminal. After that, running site-crawler should output the version and command list.

Development

Releasing

The globally installed command runs this package's source directly (the bin is the site-crawler entry script), so there is no build step. To release a new version, update the CHANGELOG.md, commit, and push a matching git tag (e.g. 3.2.1). Users update with composer global update webhubworks/site-crawler.

Usage

Run site-crawler to get a list of all available crawling commands.

Example: site-crawler crawl:url https://example.com --limit=50 --concurrency=10 --basic-auth=user:pass --exclude=action,imprint --output

Crawling is sequential by default (--concurrency=1). Pass a higher -c|--concurrency (or its -p|--parallel alias) to crawl multiple URLs in parallel per wave. Every crawl:* command supports it:

Note that parallel crawling only speeds things up when the target server actually handles requests concurrently - a local dev server with a single worker will process them one at a time regardless.

[!WARNING] On crawl:csv, -c used to be the shortcut for --url-column. It now means --concurrency, consistently with the other commands. If you have scripts passing -c 2 to select a column, change them to --url-column=2, otherwise the value is silently read as a wave size.

Writing the results to a CSV file

The terminal summary only shows the three slowest requests and the failures. Pass -o|--output to additionally write every request to a CSV file, which is the full record you can sort, filter and share:

Option Where the file is written
-o ~/site-crawler-example-com-2026-08-28-141530.csv
-o report.csv ~/report.csv - relative paths resolve against your home directory, not the current one
-o ~/reports/report.csv ~/reports/report.csv
-o /tmp/report.csv /tmp/report.csv
-o ~/reports ~/reports/site-crawler-example-com-2026-08-28-141530.csv

[!WARNING]
This will overwrite any existing file at the destination.

[!NOTE]

  • The destination is checked before the first request is made, so a crawl is never wasted on a file that cannot be written.
  • The generated name identifies what was crawled: crawl:url and crawl:ddev use the host, crawl:csv uses the name of the input file.
  • The terminal output is unchanged either way – the CSV is purely additional.

Following redirects

Up to 3 redirects are followed per URL. Pass -r|--redirects to change that, which is how you tell a long but legitimate redirect chain from a loop:

Option Behaviour
(omitted) Follow up to 3 redirects
-r 10 Follow up to 10; a loop reports Will not follow more than 10 redirects
-r 0 Do not follow at all and report the 3xx response itself

Every request records how far it was redirected and where it landed, so a redirected URL is never mistaken for a direct hit:

The CSV carries the same information in its redirects and final_url columns, both empty-or-zero for a URL that did not redirect.

[!NOTE]

  • An invalid value is reported before the first request is made, and -r without a value is rejected rather than read as 0.
  • With -r 0, a 3xx is neither a success nor a failure in HTTP terms, so those rows count towards Total requests but towards neither of the two totals below it.

Roadmap


All versions of site-crawler with dependencies

PHP Build Version
Package Version
Requires php Version ^8.5
ext-dom Version *
ext-yaml Version *
illuminate/http Version ^v12.0.0
illuminate/validation Version ^12.0.0
laravel-zero/framework Version ^12.0.0
spatie/url Version ^2.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package webhubworks/site-crawler contains the following files

Loading the files please wait ...