PHPackages                             riodevnet/elephscraper - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. riodevnet/elephscraper

ActiveLibrary

riodevnet/elephscraper
======================

ElephScraper is a lightweight and PHP-native web scraping toolkit built using Guzzle and Symfony DomCrawler. It provides a clean and powerful interface to extract HTML content, metadata, and structured data from any website.

v1.0.0(10mo ago)35MITPHP

Since Jul 3Pushed 9mo agoCompare

[ Source](https://github.com/riodevnet/elephscraper)[ Packagist](https://packagist.org/packages/riodevnet/elephscraper)[ RSS](/packages/riodevnet-elephscraper/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (2)Used By (0)

🐘 ElephScraper
==============

[](#-elephscraper)

**ElephScraper** is a lightweight and PHP-native web scraping toolkit built using Guzzle and Symfony DomCrawler. It provides a clean and powerful interface to extract HTML content, metadata, and structured data from any website.

> Fast. Clean. Eleph-style scraping. 🐘⚡

---

🚀 Features
----------

[](#-features)

- ✅ Extract metadata: title, description, keywords, author, charset, canonical, and more
- ✅ Supports Open Graph, Twitter Card, CSRF tokens, and HTTP-equiv headers
- ✅ Extract headings, paragraphs, images, lists, and links
- ✅ Powerful `filter()` method with support for class/ID/tag-based selectors
- ✅ Return raw HTML or clean plain text
- ✅ Clean return types: string, array, or associative array
- ✅ Built with Guzzle + Symfony DomCrawler + CssSelector

---

📦 Installation
--------------

[](#-installation)

Install via Composer:

```
composer require riodevnet/elephscraper
```

> Requires PHP 7.4 or newer.

---

🛠️ Basic Usage
--------------

[](#️-basic-usage)

```
