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

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

z010107/yii2-curl-ext
=====================

Easy and nice cURL extension with RESTful support for Yii2

1.1.0(10y ago)110MITPHP

Since Nov 13Pushed 10y ago1 watchersCompare

[ Source](https://github.com/z010107/Yii2-Curl-ext)[ Packagist](https://packagist.org/packages/z010107/yii2-curl-ext)[ RSS](/packages/z010107-yii2-curl-ext/feed)WikiDiscussions master Synced 2mo ago

READMEChangelog (3)Dependencies (1)Versions (12)Used By (0)

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

[](#yii2-curl-ext-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 z010107/yii2-curl-ext "*"
```

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.

```
