PHP Package: spatie/crawler

A PHP library designed for SEO optimization and web crawling capabilities, assisting in website analysis and data extraction.

Current Version: 8.4.3
Last Updated: 2025-05-20
PHP Requirement: ^8.2
Dependencies:
guzzle/guzzle
symfony/dom-crawler
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Spatie's Crawler PHP library is a powerful tool tailored for SEO specialists and developers to efficiently crawl websites for data extraction, link analysis, and content optimization. With a robust set of features and intuitive APIs, it simplifies the process of web scraping while ensuring high performance and reliability.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 8.4.3

Download Download v8.4.3

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/spatie/crawler/8.4.3/loader.php';
require_once 'libs/guzzle/guzzle/7.10.0/loader.php';
require_once 'libs/symfony/dom-crawler/7.3.3/loader.php';

use Spatie\Crawler\Crawler;
use GuzzleHttp\Client;
use Symfony\Component\DomCrawler\Crawler;

$obj = new Crawler();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.