2017 © Pedro Peláez
 

library net-curl

Simple curl wrapper

image

infostars/net-curl

Simple curl wrapper

  • Thursday, October 22, 2015
  • by gilberg-vrn
  • Repository
  • 3 Watchers
  • 0 Stars
  • 323 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 4 % Grown

The README.md

net-curl

Fase start

$curl = new curl();
$curl->prepare('https://github.com');
$content = $curl->execute();

Some tricks

$curl = new curl();
$curl->useProxy('1.2.3.4:3128', 'http');
$curl->setConnectionTimeout(10);
$curl->setTimeout(15);
$curl->setCookieFile('/custom/cookie/file');
$curl->addOptions([
    CURLOPT_USERAGENT => 'Opera/9.80 (X11; Linux i686; Ubuntu/14.10) Presto/2.12.388 Version/12.16'
]);
$curl->prepare('https://github.com/search', ['q' => 'InfoStars LLC', 'type' => 'Users')
$content = $curl->execute();

Enjoy!, (*1)

The Versions

22/10 2015

dev-master

9999999-dev

Simple curl wrapper

  Sources   Download

MIT

The Requires

  • php >=5.4.0