2017 © Pedro Peláez
 

library curl

PHP CURL Class

image

assistant/curl

PHP CURL Class

  • Friday, January 27, 2017
  • by semihaydemir
  • Repository
  • 1 Watchers
  • 0 Stars
  • 17 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

PHP Assistant/Curl Class

enter image description here, (*1)

This library provides an object-oriented wrapper of the PHP cURL extension., (*2)

If you have questions or problems with installation or usage create an Issue., (*3)

Installation

In order to install this library via composer run the following command in the console:, (*4)

composer require assistant/curl

Usage examples

$curl=new Assistant\Curl();
$curl->get('https://httpbin.org/get');
$curl=new Assistant\Curl();
$curl->get('https://httpbin.org/get','first_name=Semih&last_name=Aydemir');
$curl=new Assistant\Curl();
$curl->post('https://httpbin.org/post');
$curl=new Assistant\Curl();
$curl->post('https://httpbin.org/post','first_name=Semih&last_name=Aydemir');
$curl=new Assistant\Curl();
$curl->request('get','https://httpbin.org/post','first_name=Semih&last_name=Aydemir');
$curl=new Assistant\Curl();
$curl->request('post','https://httpbin.org/post','first_name=Semih&last_name=Aydemir');

Available methods

  • $curl->setLink();
  • $curl->getLink();
  • $curl->setHeader();
  • $curl->getHeader();
  • $curl->setHeaders();
  • $curl->getHeaders();
  • $curl->setUserAgent();
  • $curl->getUserAgent();
  • $curl->setProxy();
  • $curl->getProxy();
  • $curl->setFollowLocation();
  • $curl->getFollowLocation();
  • $curl->setAutoReferer();
  • $curl->getAutoReferer();
  • $curl->setTimeOut();
  • $curl->getTimeOut();
  • $curl->setParams();
  • $curl->getParams();
  • $curl->getResponse();
  • $curl->getErrorMessage();
  • $curl->getErrorNo();
  • $curl->getInfo();
  • $curl->isSuccess();
  • $curl->curl2string();
  • $curl->log();
  • $curl->get();
  • $curl->post();
  • $curl->request();

The Versions

27/01 2017

dev-master

9999999-dev https://github.com/semihaydemir/curl

PHP CURL Class

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

curl php php curl assistant screen scraper curl class assistant curl curl assistant curl wrapper