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

ActiveCurl-wrapper[HTTP &amp; Networking](/categories/http)

hackerone/curl
==============

Curl Wrapper for PHP

552.0k69[2 issues](https://github.com/hackerone/curl/issues)[1 PRs](https://github.com/hackerone/curl/pulls)PHP

Since Aug 8Pushed 10y ago9 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (0)

Curl Wrapper for Yii framework PHP v1.1
=======================================

[](#curl-wrapper-for-yii-framework-php-v11)

Update
------

[](#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
------------

[](#requirements)

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

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

[](#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' => array(
		'class' => 'ext.curl.Curl',
		'options' => array(/* additional 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
```

- to PUT data

```
	$output = Yii::app()->curl->put($url, $data, $params);
	// $data - data that will be sent in the body of the PUT
```

- to PATCH data

```
	$output = Yii::app()->curl->patch($url, $data);
	// $data - data that will be PATCHed
```

- to DELETE

```
	$output = Yii::app()->curl->delete($url, $params);
	// $params - query that'll be appended to the url
```

- to set options before GET or POST

```
	$output = Yii::app()->curl->setOption($name, $value)->get($url, $params);
	// $name & $value - CURL options
	$output = Yii::app()->curl->setOptions(array($name => $value))->get($get, $params);
	// pass key value pairs containing the CURL options
```

###  Health Score

31

—

LowBetter than 66% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community24

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 53.6% 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://avatars.githubusercontent.com/u/253512?v=4)[Ganesh S](/maintainers/hackerone)[@hackerone](https://github.com/hackerone)

---

Top Contributors

[![hackerone](https://avatars.githubusercontent.com/u/253512?v=4)](https://github.com/hackerone "hackerone (15 commits)")[![paillechat](https://avatars.githubusercontent.com/u/1159368?v=4)](https://github.com/paillechat "paillechat (4 commits)")[![tpruvot](https://avatars.githubusercontent.com/u/145119?v=4)](https://github.com/tpruvot "tpruvot (3 commits)")[![waleoyediran](https://avatars.githubusercontent.com/u/539007?v=4)](https://github.com/waleoyediran "waleoyediran (2 commits)")[![sannek8552](https://avatars.githubusercontent.com/u/1674045?v=4)](https://github.com/sannek8552 "sannek8552 (1 commits)")[![tatenen](https://avatars.githubusercontent.com/u/3715976?v=4)](https://github.com/tatenen "tatenen (1 commits)")[![mauro-moreno](https://avatars.githubusercontent.com/u/1187170?v=4)](https://github.com/mauro-moreno "mauro-moreno (1 commits)")[![lmagalhaes](https://avatars.githubusercontent.com/u/1542502?v=4)](https://github.com/lmagalhaes "lmagalhaes (1 commits)")

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M81](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k20.0k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k113](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M85](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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