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

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

peterfrench/yii2-curl
=====================

A Yii2 component extension for cURL.

1.0.5(11y ago)3285MITPHPPHP &gt;=5.4.0

Since Apr 6Pushed 11y ago1 watchersCompare

[ Source](https://github.com/peterfrench/yii2-curl)[ Packagist](https://packagist.org/packages/peterfrench/yii2-curl)[ RSS](/packages/peterfrench-yii2-curl/feed)WikiDiscussions master Synced today

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

Curl Wrapper for Yii2 framework
===============================

[](#curl-wrapper-for-yii2-framework)

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

[](#requirements)

- PHP 5.4+
- Yii 2.0.x
- Curl and php-curl installed

Setup instructions
------------------

[](#setup-instructions)

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

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

Once composer installs the extension, include the component in your config file.

```
	'curl' => [
		'class' => 'peterfrench\curl\Curl',
		'options' => [
			/* curl options */
		],
	],
```

Usage
-----

[](#usage)

- to GET a page with default params

```
	$output = Yii::$app->curl->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->curl->post($url, $data);
	// $data - data that will be POSTed
```

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~1 days

Total

5

Last Release

4105d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b6100d3d9fe5e96b296a135ee6e1f14147b02739803ef3e39638c0920c3b7573?d=identicon)[peterfrench](/maintainers/peterfrench)

---

Top Contributors

[![peterfrench](https://avatars.githubusercontent.com/u/374712?v=4)](https://github.com/peterfrench "peterfrench (5 commits)")

---

Tags

curlyii2extension

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[linslin/yii2-curl

Easy and nice cURL extension with RESTful support for Yii2

1801.5M20](/packages/linslin-yii2-curl)[skeeks/cms

SkeekS CMS — control panel and tools based on php framework Yii2

13825.8k59](/packages/skeeks-cms)[joni-jones/yii2-wschat

Online chat based on web sockets and ratchet php

981.3k](/packages/joni-jones-yii2-wschat)[yiiplus/yii2-websocket

使用yii2封装 websocket 扩展

212.7k](/packages/yiiplus-yii2-websocket)

PHPackages © 2026

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