myerscode / utilities-web
A fluent interface for interacting with web page content and urls.
2025.0.0
2025-02-12 23:35 UTC
Requires
- php: ^8.4
- ext-curl: *
- league/uri: ^7.5
- league/uri-components: ^7.5
- php-curl-class/php-curl-class: ^9.14
- symfony/dom-crawler: ^7.2
- symfony/http-client: ^7.2
Requires (Dev)
- donatj/mock-webserver: ^2.6
- mockery/mockery: ^1.2
- phpunit/phpunit: ^11.5
- squizlabs/php_codesniffer: ^3.0
This package is auto-updated.
Last update: 2026-03-24 23:35:36 UTC
README
A fluent interface for interacting with web sites, page content and URLs.
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.