A fluent interface for interacting with web sites, page content and URLs.
- PHP >= 8.5
- ext-curl
composer require myerscode/utilities-webuse 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();Fetch and interact with web page content.
Ping hosts and check latency.
Parse, build and manipulate URLs.
The MIT License (MIT). Please see License File for more information.