PHPackages                             myerscode/utilities-web - 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. myerscode/utilities-web

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

myerscode/utilities-web
=======================

A fluent interface for interacting with web page content and urls.

2026.0.0(3mo ago)272[1 PRs](https://github.com/myerscode/utilities-web/pulls)1MITPHPPHP ^8.5CI passing

Since May 1Pushed 3w ago1 watchersCompare

[ Source](https://github.com/myerscode/utilities-web)[ Packagist](https://packagist.org/packages/myerscode/utilities-web)[ RSS](/packages/myerscode-utilities-web/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (19)Versions (13)Used By (1)

Web Utilities
=============

[](#web-utilities)

> A fluent interface for interacting with web sites, page content and URLs.

[![Latest Stable Version](https://camo.githubusercontent.com/b1ca91ee4ae10635a0a48ca5ce6343f1c4e1d8592d69e04fb8ee981b0a2a4b14/68747470733a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f7574696c69746965732d7765622f762f737461626c65)](https://packagist.org/packages/myerscode/utilities-web)[![Total Downloads](https://camo.githubusercontent.com/d3795ba36612e15017537e19c685c481f71bc4ef2519f33439ad37383ce74ee1/68747470733a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f7574696c69746965732d7765622f646f776e6c6f616473)](https://packagist.org/packages/myerscode/utilities-web)[![PHP Version Require](https://camo.githubusercontent.com/bfd28bc1136c832b8d3884d68484f3339cf2e373b50c158e5819fb62a5c79c93/687474703a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f7574696c69746965732d7765622f726571756972652f706870)](https://packagist.org/packages/myerscode/utilities-web)[![License](https://camo.githubusercontent.com/c06c832429b3344ab001ce9c434909de05e9b3b3e30b382e93a5eca2391b54c4/68747470733a2f2f706f7365722e707567782e6f72672f6d79657273636f64652f7574696c69746965732d7765622f6c6963656e7365)](https://github.com/myerscode/utilities-web/blob/main/LICENSE)[![Tests](https://github.com/myerscode/utilities-web/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/myerscode/utilities-web/actions/workflows/tests.yml)[![codecov](https://camo.githubusercontent.com/52033fd3e4740058da75dcb9d4f90107f8ca0205f1c5914531f4bbf729565a47/68747470733a2f2f636f6465636f762e696f2f67682f6d79657273636f64652f7574696c69746965732d7765622f67726170682f62616467652e737667)](https://codecov.io/gh/myerscode/utilities-web)

Requirements
------------

[](#requirements)

- PHP &gt;= 8.5
- ext-curl
- ext-dom
- ext-filter

Install
-------

[](#install)

```
composer require myerscode/utilities-web
```

Usage
-----

[](#usage)

```
use Myerscode\Utilities\Web\Utility;

$web = new Utility('https://example.com');
// or use the static factory
$web = Utility::make('https://example.com');

// Get content from a URL
$content = $web->content()->content();

// Get a DOM crawler for the page
$dom = $web->content()->dom();

// Decode JSON responses
$data = $web->content()->json();

// Ping a host
$result = $web->ping()->ping();
$alive = $web->ping()->isAlive();

// Quick liveness check
$web->isAlive();

// Work with URLs
$uri = $web->url();

// Check response status
$response = $web->response()->check(\Myerscode\Utilities\Web\Data\ResponseFrom::CURL);
$response->isSuccessful(); // true for 2xx
```

Available Utilities
-------------------

[](#available-utilities)

### [Content Utility](docs/content-utility.md)

[](#content-utility)

Fetch and interact with web page content.

### [Ping Utility](docs/ping-utility.md)

[](#ping-utility)

Ping hosts and check latency.

### [URI Utility](docs/uri-utility.md)

[](#uri-utility)

Parse, build and manipulate URLs.

Exception Handling
------------------

[](#exception-handling)

All package exceptions extend `Myerscode\Utilities\Web\Exceptions\WebUtilityException`, which extends `RuntimeException`. This allows catching all package exceptions in one go:

```
use Myerscode\Utilities\Web\Exceptions\WebUtilityException;

try {
    $content = $web->content()->content();
} catch (WebUtilityException $e) {
    // Handle any package exception
}
```

License
-------

[](#license)

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

###  Health Score

53

—

FairBetter than 96% of packages

Maintenance90

Actively maintained with recent releases

Popularity11

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity85

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 97.6% 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

Every ~421 days

Recently: every ~630 days

Total

7

Last Release

92d ago

Major Versions

1.3.1 → 2025.0.02025-02-12

2025.0.0 → 2026.0.02026-03-31

PHP version history (4 changes)1.0.0PHP &gt;=7.0

1.3.1PHP ^7.2

2025.0.0PHP ^8.4

2026.0.0PHP ^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/a3d9923c8c4269fbe7076613da7e814719743f643cb115b441ccee8aeaa1290e?d=identicon)[oniice](/maintainers/oniice)

---

Top Contributors

[![oniice](https://avatars.githubusercontent.com/u/2676321?v=4)](https://github.com/oniice "oniice (82 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

pingutilitiesutilityutility-libraryweburluriwebcontentping

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/myerscode-utilities-web/health.svg)

```
[![Health](https://phpackages.com/badges/myerscode-utilities-web/health.svg)](https://phpackages.com/packages/myerscode-utilities-web)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[drupal/drupal-extension

Drupal extension for Behat

22215.7M167](/packages/drupal-drupal-extension)[php-soap/wsdl

Deals with WSDLs

184.0M18](/packages/php-soap-wsdl)[league/uri-components

URI components manipulation library

31940.5M90](/packages/league-uri-components)[blackfire/player

A powerful web crawler and web scraper with Blackfire support

49517.1k](/packages/blackfire-player)

PHPackages © 2026

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