PHP code example of gustavomorais / scannerurls
1. Go to this page and download the library: Download gustavomorais/scannerurls library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
gustavomorais / scannerurls example snippets
use Gustavo\Morais\Url\Scanner;
$urls = [
"https://jsonplaceholder.typicode.com/posts",
"http://localhost:8000/api/posts",
"https://jsonplaceholder.typicode.com/todos"
];
$scanner = new Scanner($urls);
print_r(json_encode($scanner->validateUrls()));
$urls = [
"https://jsonplaceholder.typicode.com/posts",
"http://localhost:8000/api/posts",
"https://jsonplaceholder.typicode.com/todos"
];
$scanner = new Gustavo\Morais\Url\Scanner($urls);
print_r(json_encode($scanner->validateUrls()));