susucool/scanner

Scan an array of URLs and report inaccessible URLs

dev-main 2021-06-02 21:37 UTC

This package is not auto-updated.

Last update: 2024-04-19 10:21:05 UTC


README

It is just an educational test project. It is a slightly modified example from Josh Lockhart's book "Modern PHP" by O'Reilly (2015).

Scan an array of URLs and report inaccessible URLs

Install

Via Composer

$ composer require susucool/scanner dev-main

Usage

$urls = [
    'http://www.apple.com',
    'http://php.net',
    'http://sdfssdwerw.org'
];
$scanner = new \Susucool\Scanner\Url\Scanner($urls);
print_r($scanner->getInvalidUrls());

Testing

Tests unavailable.

Contributing

Please see CONTRIBUTING for details.

Credits

License

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