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

ActiveYii2-extension

miki/yii2-curl
==============

Easy and nice cURL extension with RESTful support for Yii2

00PHP

Since Jul 2Pushed 10y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

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

[](#yii2-curl-extension)

Curl Wrapper for Yii framework v2.0 Update

This can now be used for non-Yii applications as well. (still works as a component if you're using Yii) Lazy initialization of curl.

- getHeader method Requirements

PHP 5.3+ Yii 1.1.7 (should work on older versions too) Curl and php-curl installed Setup instructions

Place Curl.php or git clone into protected/extensions/curl folder of your project in main.php, or console.php add the following to 'components': 'curl' =&gt; array( 'class' =&gt; 'ext.curl.Curl', 'options' =&gt; array(/\* additional curl options \*/), ), Usage

to GET a page with default params $output = Yii::app()-&gt;curl-&gt;get($url, $params); // output will contain the result of the query // $params - query that'll be appended to the url to POST data to a page $output = Yii::app()-&gt;curl-&gt;post($url, $data); // $data - data that will be POSTed to PUT data $output = Yii::app()-&gt;curl-&gt;put($url, $data, $params); // $data - data that will be sent in the body of the PUT to PATCH data $output = Yii::app()-&gt;curl-&gt;patch($url, $data); // $data - data that will be PATCHed to DELETE $output = Yii::app()-&gt;curl-&gt;delete($url, $params); // $params - query that'll be appended to the url to set options before GET or POST $output = Yii::app()-&gt;curl-&gt;setOption($name, $value)-&gt;get($url, $params); // $name &amp; $value - CURL options $output = Yii::app()-&gt;curl-&gt;setOptions(array($name =&gt; $value))-&gt;get($get, $params); // pass key value pairs containing the CURL options

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/258b537eb3c2c64c5b74295e0ef078ee4c71ed5d7460ed629dd4a3414c28aeb8?d=identicon)[chqu21](/maintainers/chqu21)

---

Top Contributors

[![chqu21](https://avatars.githubusercontent.com/u/9545620?v=4)](https://github.com/chqu21 "chqu21 (2 commits)")

### Embed Badge

![Health badge](/badges/miki-yii2-curl/health.svg)

```
[![Health](https://phpackages.com/badges/miki-yii2-curl/health.svg)](https://phpackages.com/packages/miki-yii2-curl)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
