2017 © Pedro Peláez
 

library php-curler

Adaptation PHP-Curler for composer

image

muraveiko/php-curler

Adaptation PHP-Curler for composer

  • Monday, September 4, 2017
  • by Muraveiko
  • Repository
  • 1 Watchers
  • 0 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 9 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

It's my adaptation PHP-Curler for composer., (*1)

Source readme ( see //My fix):, (*2)

PHP-Curler

This library was many years in the making for me. While it's usage is limited (eg. currently only supports get, post and head requests), it's focused around the ability to quickly specify a resource to pull, and depending on it's meta details (eg. how big the document is, what mime types it claims itself as), proceed with the requests., (*3)

Whether or not a url is accepted can be controlled through the following methods - setMime set the acceptable mime type - setMimes set the acceptable mime types, (*4)

Information about a cURL request's error can be accessed through the getErrors method. Additionally, raw information about the request can be accessed through the getInfo method., (*5)

Example Output of a URL

``` php <?php, (*6)

// booting
require_once APP . '/vendors/autoload.php'; // My fix
use Muraveiko\PhpCurler\Curler; // My fix

// grab google.com contents and display
$curler = new Curler();
echo $curler->get('http://www.google.com/');
exit(0);

```, (*7)

The above example, quite simply, downloads the google.com source, and displays it. By default, every new Curler instance is configured to accept documents whose mime type falls into the category of 'webpage' (which includes the mime types application/xhtml+xml and text/html)., (*8)

The Versions

04/09 2017

dev-master

9999999-dev

Adaptation PHP-Curler for composer

  Sources   Download

MIT

The Requires

  • php >=5.5 || >=7.0
  • ext-curl *

 

by Oleg Muraveyko
by Oliver Nassar

04/09 2017

0.0.6

0.0.6.0

Adaptation PHP-Curler for composer

  Sources   Download

MIT

The Requires

  • php >=5.5 || >=7.0
  • ext-curl *

 

by Oleg Muraveyko
by Oliver Nassar

18/05 2017

0.0.5

0.0.5.0

Adaptation PHP-Curler for composer

  Sources   Download

MIT

The Requires

  • php >=5.5 || >=7.0
  • ext-curl *

 

by Oleg Muraveyko
by Oliver Nassar

20/04 2017

0.0.4

0.0.4.0

Adaptation PHP-Curler for composer

  Sources   Download

MIT

The Requires

  • php >=5.5 || >=7.0
  • ext-curl *

 

by Oleg Muraveyko
by Oliver Nassar

20/04 2017

0.0.3

0.0.3.0

Adaptation PHP-Curler for composer

  Sources   Download

MIT

The Requires

  • php >=5.5 || >=7.0
  • ext-curl *

 

by Oleg Muraveyko
by Oliver Nassar