PHPackages                             steinhaug/libs - 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. steinhaug/libs

ActiveLibrary

steinhaug/libs
==============

Page handling

v2.0.0(2y ago)016MITPHPPHP ^8.0

Since Nov 28Pushed 2y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (4)Used By (0)

steinhaug\_libs v1 og v2
========================

[](#steinhaug_libs-v1-og-v2)

Core class for serving content to browser, uses GZIP compression.

VERSION
-------

[](#version)

v2.0.0 - Added v2 class as steinhaug\_libs, renamed v1 for steinhaug\_libs\_v1 v1.0.1 - PS4 file structure in place, added missing functions v1.0.0 - Initial state

USAGE
-----

[](#usage)

**Syntax:**

```
$swlib = new steinhaug_libs_v1;
$swlib->start_ob(false, true, 'gzip');
// page
$swlib->end_ob('text/html');

```

See ./public\_html/ for examples.

INSTALLATION
------------

[](#installation)

Install the [composer package](https://packagist.org/packages/steinhaug/libs):

```
> composer require steinhaug/libs

```

Or download the [latest release](https://github.com/steinhaug/libs/releases/latest) and include src/steinhaug/libs.php.

AUTHORS
-------

[](#authors)

[Kim Steinhaug](https://github.com/steinhaug) ([@steinhaug](https://twitter.com/steinhaug))

LICENSE
-------

[](#license)

This library is released under the MIT license.

Feel generous?
--------------

[](#feel-generous)

Buy me a beer, [donate](https://steinhaug.com/donate/).

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

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

Every ~2 days

Total

3

Last Release

897d ago

Major Versions

v1.0.1 → v2.0.02023-12-02

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

Buffergzip

### Embed Badge

![Health badge](/badges/steinhaug-libs/health.svg)

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

###  Alternatives

[matthiasmullie/scrapbook

Scrapbook is a PHP cache library, with adapters for e.g. Memcached, Redis, Couchbase, APCu, SQL and additional capabilities (e.g. transactions, stampede protection) built on top.

3212.5M32](/packages/matthiasmullie-scrapbook)[react/promise-stream

The missing link between Promise-land and Stream-land for ReactPHP

11512.9M45](/packages/react-promise-stream)[wapmorgan/unified-archive

UnifiedArchive - an archive manager with unified interface of working with all popular archive formats (zip/7z/rar/gz/bz2/xz/cab/tar/tar.gz/tar.bz2/tar.x/tar.Z/...) for PHP with ability for listing, reading, extracting and creation + built-in console archive manager.

2791.6M7](/packages/wapmorgan-unified-archive)[raulfraile/distill

Smart compressed files extractor

228190.4k9](/packages/raulfraile-distill)[trafficcophp/bytebuffer

Node.js inspired byte stream buffer for PHP.

33437.2k17](/packages/trafficcophp-bytebuffer)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)

PHPackages © 2026

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