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(3mo ago)07.8k11MITPHPPHP &gt;=7.1

Since Jun 16Pushed 2mo 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 1mo ago

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

44

—

FairBetter than 92% of packages

Maintenance82

Actively maintained with recent releases

Popularity22

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity50

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

118d 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

[friendsofsymfony/rest-bundle

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

2.8k73.3M318](/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.8M292](/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)
