PHPackages                             lucasarend/http-fox - 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. lucasarend/http-fox

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

lucasarend/http-fox
===================

This pacote is basic to use curl

v1.0.11(5mo ago)07.8k11MITPHPPHP &gt;=7.1

Since Jun 16Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/lucasarend99/foxy-http)[ Packagist](https://packagist.org/packages/lucasarend/http-fox)[ RSS](/packages/lucasarend-http-fox/feed)WikiDiscussions main Synced today

READMEChangelog (10)Dependencies (1)Versions (14)Used By (1)

HttpFox
=======

[](#httpfox)

**HttpFox** is a PHP wrapper around cURL that simplifies HTTP requests like GET, POST, PUT, and DELETE. It provides easy cookie management, user-agent configuration, support for proxy and SSL certificates, and convenient file-size retrieval.

---

Features
--------

[](#features)

✅ Easy GET, POST, PUT, PATCH and DELETE requests
✅ Built-in cookie management with optional file storage
✅ Custom User-Agent support
✅ Proxy support (with or without authentication)
✅ SSL certificate support (PFX and PEM)
✅ Get remote file sizes in different units (B, KB, MB, GB)
✅ Set request timeouts and low-speed limits
✅ Enable or disable verbose cURL output

---

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

[](#installation)

Use Composer:

```
composer require lucasarend/httpfox
```

Usage

```
use LucasArend\HttpFox\HttpFox;

$httpFox = new HttpFox();

// GET request
$response = $httpFox->getURL('https://example.com');
echo $response;

// POST request
$postData = ['name' => 'John', 'email' => 'john@example.com'];
$response = $httpFox->sendPost('https://example.com/api', $postData);

// Enable or disable cookie files
$httpFox->useCookieFile(true);

// Set a custom cookie directory
$httpFox->setCookiePath('/path/to/cookies');

// Set proxy
$httpFox->setProxy('127.0.0.1', 8080, 'username', 'password');

// Disable SSL verification (not recommended in production)
$httpFox->disableSSL(true);

// Set a PFX certificate
try {
    $httpFox->setPFX('/path/to/certificate.pfx', 'password');
} catch (\Exception $e) {
    echo 'Error: ' . $e->getMessage();
}

// Set custom headers
$httpFox->setHeaders([
    'Authorization: Bearer your_token',
    'Accept: application/json'
]);
```

API Reference
-------------

[](#api-reference)

MethodDescription`getURL($url)`Makes a GET request.`sendPost($url, $data)`Makes a POST request with data.`sendPUT($url, $data)`Makes a PUT request with data.`sendDELETE($url, $data)`Makes a DELETE request with data.`setCookiePath($path)`Sets the directory for cookie files.`useCookieFile($bool)`Enables or disables cookie file usage.`setProxy($host, $port, $user, $password)`Sets up a proxy server.`disableSSL($bool)`Enables or disables SSL certificate verification.`setPFX($path, $password)`Sets a PFX certificate.`setPEM($path, $password)`Sets a PEM certificate.`setHeaders($headers)`Sets custom HTTP headers.`setUserAgent($ua)`Sets a custom User-Agent.`setTimeOut($seconds)`Sets request timeout in seconds.`setConnectTimeout($seconds)`Sets connection timeout in seconds.`get_file_size($url, $unit)`Gets the remote file size in bytes, KB, MB, or GB.License
-------

[](#license)

MIT

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance74

Regular maintenance activity

Popularity21

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 87.5% 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

Every ~109 days

Recently: every ~161 days

Total

13

Last Release

172d ago

PHP version history (3 changes)v1.0.0-alphaPHP &gt;=7.0

v1.0.2PHP &gt;=5.6

v1.0.8PHP &gt;=7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/94dd208650ad5205cee0042fe2eea6f0c1c2edc3b863ca90bbc417749f53e87c?d=identicon)[Lucas Arend](/maintainers/Lucas%20Arend)

---

Top Contributors

[![lucasarend99](https://avatars.githubusercontent.com/u/48227315?v=4)](https://github.com/lucasarend99 "lucasarend99 (35 commits)")[![NaTTaNLabel](https://avatars.githubusercontent.com/u/189983382?v=4)](https://github.com/NaTTaNLabel "NaTTaNLabel (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lucasarend-http-fox/health.svg)

```
[![Health](https://phpackages.com/badges/lucasarend-http-fox/health.svg)](https://phpackages.com/packages/lucasarend-http-fox)
```

###  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.4M90](/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)
