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

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

nichin79/curl-php
=================

Basic curl class for PHP

v1.0.0(2y ago)0372PHP

Since Oct 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/nichin79/curl-php)[ Packagist](https://packagist.org/packages/nichin79/curl-php)[ RSS](/packages/nichin79-curl-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (2)

curl
====

[](#curl)

Contains two classes:

- Curl
- BasicCurl

BasicCurl extends Curl and will automatically use the curlopt's

- ssl\_verifypeer
- returntransfer. In addition it will also execute the curl automatically.

If curlopt\_returntransfer is set, the response can be retrieved with `$curl->getResponse()`.

`use Nichin79\Curl\BasicCurl;`OR `use Nichin79\Curl\Curl;`

Setting the params/options for curl can be done in two ways:

### Option 1

[](#option-1)

```
$data = [
  'url' => 'https://reqbin.com/echo',
  'method' => 'GET', // Method will automatically be set to GET if not specified
  'headers' => [],
  'options' => [
  'SSL_VERIFYPEER' => false
  ]
];

```

### Option 2

[](#option-2)

```
$data = [
  'curlopt_url' => 'https://reqbin.com/echo',
  'curlopt_ssl_verifypeer' => false,
];

```

### Usage

[](#usage)

```
$curl = new Curl($data);

// execute the initiated curl and return the response
$curl->exec();

echo "\r\n";
echo "http status code: " . $curl->httpcode;

```

Setting url, method, headers and data are optional and can be set inside the options array as well.

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity42

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

933d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b7e9e6586d0afb15e1d856e62c0f7ab2d2580360998159276d473eb134750dd?d=identicon)[nichin79](/maintainers/nichin79)

---

Top Contributors

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

### Embed Badge

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

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

###  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)
