PHPackages                             salimibrohimi/web-resource-extractor - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. salimibrohimi/web-resource-extractor

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

salimibrohimi/web-resource-extractor
====================================

Simple and lightweight PHP class for downloading Web pages.

1.0(3y ago)04GPL-3.0-or-laterPHPPHP &gt;=7.4

Since Nov 26Pushed 3y ago1 watchersCompare

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

READMEChangelog (1)DependenciesVersions (2)Used By (0)

WebResourceExtractor
====================

[](#webresourceextractor)

Simple and lightweight PHP class for downloading Web pages.

Download via composer:

```
composer require salimibrohimi/web-resource-extractor

```

Examples on how to use this class.

```
$extractor = new WebResourceExtractor(true, '/cache/', 3600);
$extractor->setUserAgent('YOUR USER AGENT');
$extractor->followLocation(5); // allow cURL to follow redirects.

// Example #1. Extract a single Web resource.
$results = $extractor->extractWebResource('https://en.wikipedia.org/wiki/Main_Page', '', '', true, false);

// Example #2. Extract multiple Web resources by relative URLs.
$urls = [
    ['wiki/Wikipedia:Contents', '', '', true],
    ['wiki/Portal:Current_events', '', '', false],
    'wiki/Wikipedia:About',
    'wiki/404',
];

$results = $extractor->extractMultipleWebResources($urls, 'https://en.wikipedia.org', 15);

// Example #3. Extract multiple Web resources by absolute URLs.
$urls = [
    'https://en.wikipedia.org',
    'https://tg.wikipedia.org',
];

$results = $extractor->extractMultipleWebResources($urls);

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1260d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/387ebc1a785cf09ee616833503b3af72fb69f9abdc2bd6c0b912aec9779a0d70?d=identicon)[salimibrohimi](/maintainers/salimibrohimi)

---

Top Contributors

[![salimibrohimi](https://avatars.githubusercontent.com/u/22395321?v=4)](https://github.com/salimibrohimi "salimibrohimi (11 commits)")

### Embed Badge

![Health badge](/badges/salimibrohimi-web-resource-extractor/health.svg)

```
[![Health](https://phpackages.com/badges/salimibrohimi-web-resource-extractor/health.svg)](https://phpackages.com/packages/salimibrohimi-web-resource-extractor)
```

###  Alternatives

[symfony/polyfill-uuid

Symfony polyfill for uuid functions

688335.4M63](/packages/symfony-polyfill-uuid)[spatie/error-solutions

This is my package error-solutions

6853.2M11](/packages/spatie-error-solutions)[phpflo/phpflo

Flow-based programming for PHP

2173.3k4](/packages/phpflo-phpflo)[eftec/autoloadone

AutoloadOne is a program that generates an autoload class for PHP.

403.4k](/packages/eftec-autoloadone)[ys-tools/default-theme-configuration-bundle

OroCommerce Default Theme Configuration Bundle

124.2k](/packages/ys-tools-default-theme-configuration-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
