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

ActiveLibrary[HTTP &amp; Networking](/categories/http)

assistant/curl
==============

PHP CURL Class

025PHP

Since Jan 27Pushed 9y ago1 watchersCompare

[ Source](https://github.com/semihaydemir/curl)[ Packagist](https://packagist.org/packages/assistant/curl)[ RSS](/packages/assistant-curl/feed)WikiDiscussions master Synced 4w ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP Assistant/Curl Class
========================

[](#php-assistantcurl-class)

[![enter image description here](https://camo.githubusercontent.com/60f362b6f80e32b20e733e629acfc522a611a1fe1f35227488edc077a870a4ce/68747470733a2f2f322e62702e626c6f6773706f742e636f6d2f2d366335764333466353424d2f566a44675166724f4f69492f41414141414141414958452f6871302d547479587567592f73313630302f7068706375726c2e706e67)](https://camo.githubusercontent.com/60f362b6f80e32b20e733e629acfc522a611a1fe1f35227488edc077a870a4ce/68747470733a2f2f322e62702e626c6f6773706f742e636f6d2f2d366335764333466353424d2f566a44675166724f4f69492f41414141414141414958452f6871302d547479587567592f73313630302f7068706375726c2e706e67)

This library provides an object-oriented wrapper of the PHP cURL extension.

If you have questions or problems with installation or usage [create an Issue](https://github.com/semihaydemir/curl/issues).

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

[](#installation)

In order to install this library via composer run the following command in the console:

```
composer require assistant/curl
```

Usage examples
--------------

[](#usage-examples)

```
$curl=new Assistant\Curl();
$curl->get('https://httpbin.org/get');
```

```
$curl=new Assistant\Curl();
$curl->get('https://httpbin.org/get','first_name=Semih&last_name=Aydemir');
```

```
$curl=new Assistant\Curl();
$curl->post('https://httpbin.org/post');
```

```
$curl=new Assistant\Curl();
$curl->post('https://httpbin.org/post','first_name=Semih&last_name=Aydemir');
```

```
$curl=new Assistant\Curl();
$curl->request('get','https://httpbin.org/post','first_name=Semih&last_name=Aydemir');
```

```
$curl=new Assistant\Curl();
$curl->request('post','https://httpbin.org/post','first_name=Semih&last_name=Aydemir');
```

Available methods
-----------------

[](#available-methods)

- $curl-&gt;setLink();
- $curl-&gt;getLink();
- $curl-&gt;setHeader();
- $curl-&gt;getHeader();
- $curl-&gt;setHeaders();
- $curl-&gt;getHeaders();
- $curl-&gt;setUserAgent();
- $curl-&gt;getUserAgent();
- $curl-&gt;setProxy();
- $curl-&gt;getProxy();
- $curl-&gt;setFollowLocation();
- $curl-&gt;getFollowLocation();
- $curl-&gt;setAutoReferer();
- $curl-&gt;getAutoReferer();
- $curl-&gt;setTimeOut();
- $curl-&gt;getTimeOut();
- $curl-&gt;setParams();
- $curl-&gt;getParams();
- $curl-&gt;getResponse();
- $curl-&gt;getErrorMessage();
- $curl-&gt;getErrorNo();
- $curl-&gt;getInfo();
- $curl-&gt;isSuccess();
- $curl-&gt;curl2string();
- $curl-&gt;log();
- $curl-&gt;get();
- $curl-&gt;post();
- $curl-&gt;request();

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

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://avatars.githubusercontent.com/u/5372068?v=4)[Semih](/maintainers/semihaydemir)[@semihaydemir](https://github.com/semihaydemir)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25025.5M80](/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

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

Router subcomponent for Mezzio

265.3M84](/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

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

PHPackages © 2026

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