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

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

alcamo/http
===========

Extension of some laminas classes, in particular to stream process output

0.12.4(yesterday)0188—6.7%2Apache-2.0PHPPHP 7.3 - 8.5

Since Jun 30Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/rv1971/alcamo-http)[ Packagist](https://packagist.org/packages/alcamo/http)[ RSS](/packages/alcamo-http/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (28)Versions (27)Used By (2)

Usage examples
==============

[](#usage-examples)

FileResponse
------------

[](#fileresponse)

```
use alcamo\http\FileResponse;

$response = FileResponse::newFromPath('/srv/www/htdocs/foo.xml');

$response->emit();

```

This sends an HTTP response with `Content-Type` and `Content-Length`headers. It may be more efficient than doing the same thing simply with `Laminas\Diactoros\Response` because is sends the file via `fpassthru()`, without need to keep the entire file content in memory.

PipeStream
----------

[](#pipestream)

```
use alcamo\http\{PipeStream, Response};
use alcamo\process\OutputProcess;

$stream = new PipeStream(new OutputProcess('/usr/bin/convert foo.png jpeg:-'));

$response = new Response(
    [ [ 'dc:format', 'image/jpeg' ] ],
    $stream
);

$response->emit();

```

This sends an HTTP response with `Content-Type` header. Again, it may be more efficient than doing the same thing simply with `Laminas\Diactoros\Response` because is sends the file via `fpassthru()`, without need to keep the entire data in memory.

The example also illustrates a possible use of the `Response` class, giving RDFa metadata which is automatically converted into HTTP headers.

Simple status page
------------------

[](#simple-status-page)

```
use alcamo\http\Response;

$response = Response::newFromStatusAndText(403);

$response->emit();

```

This will send an HTTP response with `Content-Type: text/plain` and `Content-Length` header, with status code 403 and the text "Forbidden".

###  Health Score

51

↑

FairBetter than 95% of packages

Maintenance96

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity70

Established project with proven stability

 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

Every ~76 days

Recently: every ~18 days

Total

25

Last Release

1d ago

PHP version history (3 changes)0.1PHP 7.3 - 7.4

0.1.1PHP 7.3 - 8.0

0.12.2PHP 7.3 - 8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/db9722b60c5a69929f1d1c7df3d0d8682d74ed19146a2cdd2dfffa7ddc4abc78?d=identicon)[rv1971](/maintainers/rv1971)

---

Top Contributors

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

---

Tags

httpprocess

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

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

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

###  Alternatives

[guzzlehttp/guzzle

Guzzle is a PHP HTTP client library

23.5k1.0B35.4k](/packages/guzzlehttp-guzzle)[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[cakephp/cakephp

The CakePHP framework

8.9k19.5M1.8k](/packages/cakephp-cakephp)[mezzio/mezzio

PSR-15 Middleware Microframework

3923.8M125](/packages/mezzio-mezzio)[graham-campbell/guzzle-factory

Provides A Simple Guzzle Factory With Good Defaults

927.0M55](/packages/graham-campbell-guzzle-factory)[mimmi20/browser-detector

Library to detect Browsers and Devices

48157.5k5](/packages/mimmi20-browser-detector)

PHPackages © 2026

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