PHPackages                             hoksilato/yii2-curl - 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. hoksilato/yii2-curl

ActiveYii2-extension[HTTP &amp; Networking](/categories/http)

hoksilato/yii2-curl
===================

Easy and nice cURL extension with RESTful support for Yii2

1.0.7(10y ago)02MITPHP

Since Nov 13Pushed 10y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (9)Used By (0)

yii2-curl extension
===================

[](#yii2-curl-extension)

Cool working curl extension for Yii2, including RESTful support:

- POST
- GET
- HEAD
- PUT
- DELETE

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

[](#requirements)

- Yii2
- PHP 5.4+
- Curl and php-curl installed

Installation
------------

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

```
php composer.phar require --prefer-dist linslin/yii2-curl "*"
```

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code. The following example shows you how to handling a simple GET Request.

```
