PHPackages                             hstanleycrow/easyphpcurlrequest - 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. hstanleycrow/easyphpcurlrequest

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

hstanleycrow/easyphpcurlrequest
===============================

Free PHP Class to make Http Request using cURL

1.0.0(3y ago)0171MITPHPPHP ^8.0

Since Apr 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/hstanleycrow/EasyPHPcURLRequest)[ Packagist](https://packagist.org/packages/hstanleycrow/easyphpcurlrequest)[ Docs](https://github.com/hstanleycrow/EasyPHPcURLRequest)[ RSS](/packages/hstanleycrow-easyphpcurlrequest/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

 Easy PHP cURL Request

==========================

[](#----easy-php-curl-request--)

#### Free PHP Class to make Http Request using cURL

[](#free-php-class-to-make-http-request-using-curl)

 [How To Use](#how-to-use) • [Download](#download) • [License](#license)

How To Use
----------

[](#how-to-use)

```
# Clone this repository
$ git clone https://github.com/hstanleycrow/EasyPHPcURLRequest/

# install libraries
$ composer update

# or install using composer
$ composer require hstanleycrow/easyphpcurlrequest
```

### Examples

[](#examples)

```
$url = "https://reqres.in/api/users";
$postData = array(
    'name' => 'John Doe',
    'job' => 'Web Developer'
);
$request = new CurlRequest($url);
$request->setPost(true);
$request->setPostData(json_encode($postData));
$request->setHttpHeader([
    'Content-Type: application/json'
]);
$request->execute();
if ($request->isSuccessful()) :
    $response = $request->getResult();
    $response_data = json_decode($response, true);
    var_dump($response_data);
else :
    echo "Error";
endif;

#example 2: get request
$url = 'https://jsonplaceholder.typicode.com/posts';
$request = new CurlRequest($url);
$request->setPost(false);
$request->setHttpHeader([
    'Content-Type: application/json'
]);
$request->execute();
if ($request->isSuccessful()) :
    $response = $request->getResult();
    $response_data = json_decode($response, true);
    var_dump($response_data);
else :
    echo "Error";
endif;
```

Download
--------

[](#download)

You can [download](https://github.com/hstanleycrow/EasyPHPcURLRequest/) the latest version here.

PHP Versions
------------

[](#php-versions)

I have tested this class only in this PHP versions. So, if you have an older version and do not work, let me know.

PHP VersionPHP 8.0PHP 8.1PHP 8.2Support
-------

[](#support)

[![Buy Me A Coffee](https://camo.githubusercontent.com/b32d80c4bde7464703f7dcbb8dd24902a7b2de6b0f52a872563f87293d4eb87a/68747470733a2f2f7777772e6275796d6561636f666665652e636f6d2f6173736574732f696d672f637573746f6d5f696d616765732f707572706c655f696d672e706e67)](https://www.buymeacoffee.com/haroldcrow)

License
-------

[](#license)

MIT

---

> [www.hablemosdeseo.net](https://www.hablemosdeseo.net) · GitHub [@hstanleycrow](https://github.com/hstanleycrow) · Twitter [@harold\_crow](https://twitter.com/harold_crow)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

1114d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/713da77764977a76a357f6b34361a7ab51bd55ea847b84112e3a38f5496af173?d=identicon)[hstanleycrow](/maintainers/hstanleycrow)

---

Top Contributors

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

---

Tags

phpcurlhttp request

### Embed Badge

![Health badge](/badges/hstanleycrow-easyphpcurlrequest/health.svg)

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

###  Alternatives

[stefangabos/zebra_curl

A high performance solution for making multiple HTTP requests concurrently, asynchronously from your PHP projects using cURL

21971.3k2](/packages/stefangabos-zebra-curl)[popphp/pop-http

Pop Http Component for Pop PHP Framework

1018.5k13](/packages/popphp-pop-http)[ismaeltoe/osms

PHP library wrapper of the Orange SMS API.

4540.0k](/packages/ismaeltoe-osms)

PHPackages © 2026

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