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

This package is not auto-updated.

Last update: 2024-09-28 18:53:16 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

  1. PageGrabber validates input value as URL according to [RFC 2396] (http://www.faqs.org/rfcs/rfc2396.html)