PHPackages                             sandeepshetty/wcurl - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. sandeepshetty/wcurl

ActiveLibrary[HTTP &amp; Networking](/categories/http)

sandeepshetty/wcurl
===================

A convenience wrapper around PHP's cURL library

686.7k↓22.9%11[1 PRs](https://github.com/sandeepshetty/wcurl/pulls)PHP

Since Apr 7Pushed 13y ago1 watchersCompare

[ Source](https://github.com/sandeepshetty/wcurl)[ Packagist](https://packagist.org/packages/sandeepshetty/wcurl)[ RSS](/packages/sandeepshetty-wcurl/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

wcurl
=====

[](#wcurl)

A convenience wrapper around PHP's cURL library

Requirements
------------

[](#requirements)

- PHP 5+ with [cURL support](http://php.net/manual/en/book.curl.php).

Download
--------

[](#download)

### Via [Composer](http://getcomposer.org/) (Preferred)

[](#via-composer-preferred)

Create a `composer.json` file if you don't already have one in your projects root directory and require wcurl:

```
{
	"require": {
		"sandeepshetty/wcurl": "dev-master"
	}
}

```

Install Composer:

```
$ curl -s http://getcomposer.org/installer | php

```

Run the install command:

```
$ php composer.phar install

```

This will download wcurl into the `vendor/sandeepshetty/wcurl` directory.

To learn more about Composer visit

### Via an archive

[](#via-an-archive)

Download the [latest version of wcurl](https://github.com/sandeepshetty/wcurl/archives/master):

```
$ curl -L http://github.com/sandeepshetty/wcurl/tarball/master | tar xvz
$ mv sandeepshetty-wcurl-* wcurl
```

Use
---

[](#use)

### Description

[](#description)

string **wcurl**( string *$method* , string *$url* \[, mixed *$query* \[, mixed *$payload* \[, array *$request\_headers* \[, array *&amp;$response\_headers* \[, array *$curl\_opts* \]\]\]\]\] )

### Examples

[](#examples)

```
