2017 © Pedro Peláez
 

library curl

cURL wrapper for PHP applications.

image

bca/curl

cURL wrapper for PHP applications.

  • Wednesday, September 17, 2014
  • by brodkinca
  • Repository
  • 2 Watchers
  • 9 Stars
  • 19,453 Installations
  • JavaScript
  • 1 Dependents
  • 0 Suggesters
  • 254 Forks
  • 0 Open issues
  • 15 Versions
  • 4 % Grown

The README.md

BCA-PHP-CURL

Work with remote servers via cURL much easier than using the native PHP bindings., (*1)

Build Status Dependencies Status Coverage Status SensioLabsInsight, (*2)

Latest Stable Version Total Downloads License, (*3)

Requirements

  1. PHP 5.3+
  2. libcurl

Features

  • POST/GET/PUT/DELETE requests over HTTP
  • HTTP Authentication
  • Follows redirects
  • Returns error string
  • Provides debug information
  • Cookies

Install

Using Composer

Just add the following to the require section your composer.json file:, (*4)

"bca/curl": "2.*"

Then execute composer install to pull down the latest release., (*5)

Package details can be found at https://packagist.org/packages/bca/curl., (*6)

Manually via Github

You may download a specific version from https://github.com/brodkinca/BCA-PHP-CURL/tags or visit the main repository at https://github.com/brodkinca/BCA-PHP-CURL/tree/master to download unreleased code or pull down a copy via git., (*7)

Versioning

This library will be maintained under the Semantic Versioning guidelines., (*8)

Releases will be numbered with the following format:, (*9)

<major>.<minor>.<patch>

And constructed with the following guidelines:, (*10)

  • Breaking backward compatibility bumps the major (and resets the minor and patch)
  • New additions without breaking backward compatibility bumps the minor (and resets the patch)
  • Bug fixes and misc changes bump the patch

Composer users who would like more granular control over upgrades should restrict their installation to patch updates only using this require key:, (*11)

"bca/curl": "2.1.*"

For more information on SemVer, please visit http://semver.org/., (*12)

Examples

Simple requests can be constructed with just a URL and a method., (*13)

$request = new CURL('http://example.com/');
$response = $request->get();

More complex requests build upon that concept by adding methods to the request., (*14)

$request = new CURL('http://example.com/');
$response = $request
    ->param('aaa', 'bbb')
    ->param('xxx', 'yyy')
    ->post();

echo $response;

Advanced requests can be built by adding even more methods., (*15)

$request = new CURL('http://example.com/');
$response = $request
    ->param('aaa', 'bbb')
    ->param('xxx', 'yyy')
    ->option(CURLOPT_PROXY, '10.0.0.1')
    ->auth('username', 'password', 'digest')
    ->delete();

echo $response;

The Versions

17/09 2014

dev-master

9999999-dev https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

curl wrapper

17/09 2014

dev-develop

dev-develop https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

curl wrapper

17/09 2014

2.2.1

2.2.1.0 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

curl wrapper

17/09 2014

dev-hotfix/2.2.1

dev-hotfix/2.2.1 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

curl wrapper

17/09 2014

dev-feature/5-cookie_separator

dev-feature/5-cookie_separator https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

curl wrapper

17/09 2014

dev-feature/6-CURLOPT_POST

dev-feature/6-CURLOPT_POST https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

curl wrapper

17/09 2014

dev-feature/PSR-4

dev-feature/PSR-4 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

curl wrapper

21/03 2014

2.1.5

2.1.5.0 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

 

The Development Requires

curl wrapper

20/03 2014

2.1.4

2.1.4.0 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

 

curl wrapper

30/12 2013

2.1.3

2.1.3.0 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

curl wrapper

05/12 2012

2.1.2

2.1.2.0 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

curl wrapper

27/10 2012

2.1.1

2.1.1.0 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

curl wrapper

27/10 2012

2.1.0

2.1.0.0 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

curl wrapper

27/10 2012

2.0.1

2.0.1.0 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

curl wrapper

25/10 2012

2.0.0

2.0.0.0 https://github.com/brodkinca/BCA-PHP-CURL

cURL wrapper for PHP applications.

  Sources   Download

MIT

The Requires

  • php >=5.3.0
  • ext-curl *

 

curl wrapper