myerscode/utilities-web

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

Maintainers

Package info

github.com/myerscode/utilities-web

pkg:composer/myerscode/utilities-web

Statistics

Installs: 72

Dependents: 1

Suggesters: 0

Stars: 2

Open Issues: 1

2025.0.0 2025-02-12 23:35 UTC

README

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

Latest Stable Version Total Downloads PHP Version Require License Tests codecov

Requirements

  • PHP >= 8.5
  • ext-curl

Install

composer require myerscode/utilities-web

Usage

use Myerscode\Utilities\Web\Utility;

$web = new Utility('https://example.com');

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

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

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

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

Available Utilities

Content Utility

Fetch and interact with web page content.

Ping Utility

Ping hosts and check latency.

URI Utility

Parse, build and manipulate URLs.

License

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