glow/guzzler

This package is abandoned and no longer maintained. No replacement package was suggested.

A simplied wrapper for HTTP libraries

1.9 2018-06-14 13:07 UTC

This package is not auto-updated.

Last update: 2018-06-14 13:08:14 UTC


README

A simple GET wrapper for Guzzle 5.3

Installing

The recommended way to install Glow\Guzzler is to use Composer.

composer require glow/guzzler

Example

<?php

$example_guzzler = new Glow\Guzzler\Guzzler;

$example_guzzler->setUserAgent('Some UA');
$example_guzzler->setRequestUrl('http://www.example.com');

//grab the contents
$example_guzzler->getResponseContents();

//grab the status code
$example_guzzler->getStatusCode();

Additional Information

To use this you will first need a client from: http://docs.php-http.org/en/latest/clients.html