PHPackages                             reneknox/fetch - 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. reneknox/fetch

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

reneknox/fetch
==============

wrap for curl request

017PHP

Since Jan 12Pushed 3y ago1 watchersCompare

[ Source](https://github.com/OmarHossamEldin/Fetch)[ Packagist](https://packagist.org/packages/reneknox/fetch)[ RSS](/packages/reneknox-fetch/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

fetch
=====

[](#fetch)

> sample wrap for curl request

Install &amp; Dependence
------------------------

[](#install--dependence)

- php unit

To run test
-----------

[](#to-run-test)

```
composer test

```

Usage
-----

[](#usage)

```
  $httpRequest = new HttpRequest();
  $response = $httpRequest->set_base_url('https://jsonplaceholder.typicode.com')
    ->set_headers(['Content-Type' => 'application/json'])
    ->get('/todos');
  // or
  $httpRequest = new HttpRequest();
  $httpRequest->set_base_url('https://jsonplaceholder.typicode.com');
  $httpRequest->set_headers(['Content-Type' => 'application/json']);
  $response = $httpRequest->get('/todos');
```

Directory structure
-------------------

[](#directory-structure)

```
|—— .gitignore
|—— src
|—— composer.json
|—— composer.lock
|—— developer
|—— LICENSE
|—— phpunit.xml
|—— tests
|    |—— Uint
|—— vendor

```

### Tested Platform

[](#tested-platform)

- software

    ```
    OS: Ubuntu - Windows 10

    ```

License
-------

[](#license)

> MIT

Authors
-------

[](#authors)

- [Omar Hossam El-Din Kandil](https://www.linkedin.com/in/omar-hossameldin-kandil-74633a1bb/)

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity24

Early-stage or recently created project

 Bus Factor1

Top contributor holds 80% 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/64984ea5fd9cd5a1d21cf6b5e7f49b9ab9b19f5ddfe81e6a0a41f4662648ec66?d=identicon)[OmarHossamEldin](/maintainers/OmarHossamEldin)

---

Top Contributors

[![OmarHossamEldinKandil](https://avatars.githubusercontent.com/u/127663778?v=4)](https://github.com/OmarHossamEldinKandil "OmarHossamEldinKandil (4 commits)")[![OmarHossamEldin](https://avatars.githubusercontent.com/u/62789045?v=4)](https://github.com/OmarHossamEldin "OmarHossamEldin (1 commits)")

### Embed Badge

![Health badge](/badges/reneknox-fetch/health.svg)

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

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

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

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

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

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

Router subcomponent for Mezzio

265.4M91](/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)
