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 2mo 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 14% 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://www.gravatar.com/avatar/ce275d7d134dba25986e20fddd2054ccb62ccf543fa8433a3a0efc37baf7c804?d=identicon)[semihaydemir](/maintainers/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

[friendsofsymfony/rest-bundle

This Bundle provides various tools to rapidly develop RESTful API's with Symfony

2.8k73.3M319](/packages/friendsofsymfony-rest-bundle)[php-http/discovery

Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations

1.3k309.5M1.2k](/packages/php-http-discovery)[nyholm/psr7

A fast PHP7 implementation of PSR-7

1.3k235.4M2.4k](/packages/nyholm-psr7)[pusher/pusher-php-server

Library for interacting with the Pusher REST API

1.5k94.8M293](/packages/pusher-pusher-php-server)[spatie/crawler

Crawl all internal links found on a website

2.8k16.3M52](/packages/spatie-crawler)[react/http

Event-driven, streaming HTTP client and server implementation for ReactPHP

78126.4M414](/packages/react-http)

PHPackages © 2026

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