alexgoldovsky / page-grabber
There is no license information available for the latest version (dev-master) of this package.
dev-master
2016-03-31 12:59 UTC
Requires
- php: >=5.5.9
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
This package is not auto-updated.
Last update: 2025-01-04 20:25:53 UTC
README
PageGrabber is a Composer package the makes it easy to grab website's title.
Installing PageGrabber
The recommended way to install PageGrabber is throught [Composer] (https://getcomposer.org/).
if you don't have Composer installed, you may install it via CLI, by typing
curl -sS https://getcomposer.org/installer | php
Next, run the Composer command to install PageGrabber:
composer require alexgoldovsky/page-grabber
Usage
Here is a simple example:
<?php
require 'vendor/autoload.php';
use PageGrabber\PageGrabber;
$grabber = new PageGrabber("https://blazemeter.com");
$title = $grabber->getTitle();
echo $title;
Output:
JMeter, Load & Continuous Performance Testing Platform
notes
- PageGrabber validates input value as URL according to [RFC 2396] (http://www.faqs.org/rfcs/rfc2396.html)