Download the PHP package peterujah/broken-links-scanner without Composer

On this page you can find all versions of the php package peterujah/broken-links-scanner. 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 broken-links-scanner

PHP Broken Links Scanner

A PHP library for scanning websites to identify broken links and extract relevant information. Ensure that the required PHP extensions are installed, particularly cURL, for the scanner to function properly.

Installation is super-easy via Composer:


CLI Usage

CLI Example Use the CLI script to scan a website for broken links.

Options:

Example Usage:

To start a scan, run the following command:


Example: Using Scanner to Scan a Website for Broken Links

Initialize Scanner with the necessary parameters and register your custom classes.

1. Basic Usage

2. Start the Scan and Retrieve Results

If the path is not set, you can get the output directly:

3. Using the wait Method

To wait for the scan to complete, you can use the wait method with a specified timeout:

Note: When using the wait method no need to call start method again.


Class Methods Documentation

__construct


isCompleted(): bool


getBrokenLinks(): array


getVisitedUrls(): array


getErrors(): array


getUrls(): array


setPath(string $path): self


cli(bool $cli): self


start(): bool


wait(int $timeout, ?callable $onComplete = null): void


All versions of broken-links-scanner with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
ext-curl Version *
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 peterujah/broken-links-scanner contains the following files

Loading the files please wait ...