2017 © Pedro Peláez
 

library cws-curl

A flexible wrapper PHP class for the cURL extension.

image

crazy-max/cws-curl

A flexible wrapper PHP class for the cURL extension.

  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 12 Versions
  • 6 % Grown

The README.md

Latest Stable Version Minimum PHP Version Build Status Code Quality Become a sponsor Donate Paypal, (*1)

:warning: Abandoned project

This project is not maintained anymore and is abandoned. Feel free to fork and make your own changes if needed., (*2)

Thanks to everyone for their valuable feedback and contributions., (*3)

About

A flexible wrapper PHP class for the cURL extension., (*4)

Installation

composer require crazy-max/cws-curl

And download the code:, (*5)

composer install # or update

Getting started

See tests/test.php file sample to help you., (*6)

Example

, (*7)

Methods

reset - Reset.
process - Start the cURL request.
, (*8)

getUrl - The URL to fetch.
setUrl - Set the URL to fetch.
getMethod - The HTTP request method.
setDeleteMethod - Set DELETE HTTP request method.
setGetMethod - Set GET HTTP request method. (default)
setHeadMethod - Set HEAD HTTP request method.
setPostMethod - Set POST HTTP request method.
setPutMethod - Set PUT HTTP request method.
getParams - Query string parameters.
addParam - Add a custom parameter to the cURL request.
addOption - Add an option for the cURL transfer.
getTimeout - The maximum number of seconds to allow cURL functions to execute.
setTimeout - Set the maximum number of seconds to allow cURL functions to execute.
getReferer - The contents of the "Referer: " header to be used in a HTTP request.
setReferer - Set the contents of the "Referer: " header to be used in a HTTP request.
getUserAgent - The contents of the "User-Agent: " header to be used in a HTTP request.
setChromeUseragent - Set the Chrome User-Agent to the contents of the "User-Agent: " header to be used in a HTTP request.
setFirefoxUseragent - Set the Firefox User-Agent to the contents of the "User-Agent: " header to be used in a HTTP request.
setGooglebotUseragent - Set the Googlebot User-Agent to the contents of the "User-Agent: " header to be used in a HTTP request.
setIeUseragent - Set the Internet Explorer User-Agent to the contents of the "User-Agent: " header to be used in a HTTP request.
setOperaUseragent - Set the Opera User-Agent to the contents of the "User-Agent: " header to be used in a HTTP request.
setUserAgent - Set The contents of the "User-Agent: " header to be used in a HTTP request.
getUsername - The username for the CURLOPT_USERPWD option.
getPassword - The password associated to the username for the CURLOPT_USERPWD option.
setAuth - Set authentication to the cURL request with username and password.
isRedirect - Redirects allowed.
setRedirect - Set allow redirects.
getMaxRedirect - Maximum redirects allowed.
setMaxRedirect - Set the maximum redirects allowed.
getProxyHost - The host IP of the proxy to connect to.
getProxyPort - The port number of the proxy to connect to.
getProxyType - The proxy type CURLPROXY_HTTP, CURLPROXY_SOCKS4 or CURLPROXY_SOCKS5.
setProxy - Set a HTTP proxy to tunnel requests through.
getProxyAuthType - The HTTP authentication method(s) to use for the proxy connection. Can be CURLAUTH_BASIC or CURLAUTH_NTLM.
getProxyUsername - The username for the CURLOPT_PROXYUSERPWD option.
getProxyPassword - The password associated to the proxyUsername for the CURLOPT_PROXYUSERPWD option.
setProxyAuth - Set a HTTP proxy authentication.

, (*9)

getSession - The current cURL session.
getStatus - The HTTP status code returned.
getContent - The content transferred.
getInfos - The cURL information regarding the transfer.
getHeaderFulltext - The header fulltext response.
getHeaders - The headers response.
getError - Get the last error.
, (*10)

How can I help ?

All kinds of contributions are welcome :raised_hands:! The most basic way to show your support is to star :star2: the project, or to raise issues :speech_balloon: You can also support this project by becoming a sponsor on GitHub :clap: or by making a Paypal donation to ensure this journey continues indefinitely! :rocket:, (*11)

Thanks again for your support, it is much appreciated! :pray:, (*12)

License

MIT. See LICENSE for more details., (*13)

The Versions

07/06 2018

dev-master

9999999-dev https://github.com/crazy-max/CwsCurl

A flexible wrapper PHP class for the cURL extension.

  Sources   Download

MIT LGPL

The Requires

 

curl wrapper

30/04 2018

1.3

1.3.0.0

  Sources   Download

30/04 2018

1.4

1.4.0.0

  Sources   Download

30/04 2018

1.5

1.5.0.0

  Sources   Download

30/04 2018

1.6

1.6.0.0

  Sources   Download

30/04 2018

1.0

1.0.0.0

  Sources   Download

30/04 2018

1.1

1.1.0.0

  Sources   Download

30/04 2018

1.2

1.2.0.0

  Sources   Download

04/01 2018

1.10

1.10.0.0 https://github.com/crazy-max/CwsCurl

A flexible wrapper PHP class for the cURL extension.

  Sources   Download

MIT

The Requires

 

curl wrapper

28/11 2016

1.9

1.9.0.0 https://github.com/crazy-max/CwsCurl

A flexible wrapper PHP class for the cURL extension.

  Sources   Download

LGPL

The Requires

 

curl wrapper

22/08 2016

1.8

1.8.0.0 https://github.com/crazy-max/CwsCurl

A flexible wrapper PHP class for the cURL extension.

  Sources   Download

LGPL

The Requires

 

curl wrapper

22/08 2016

1.7

1.7.0.0 https://github.com/crazy-max/CwsCurl

A flexible wrapper PHP class for the cURL extension.

  Sources   Download

LGPL

The Requires

 

curl wrapper