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. [Utility &amp; Helpers](/categories/utility)
4. /
5. steinhaug/libs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

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 yesterday

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 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

944d ago

Major Versions

v1.0.1 → v2.0.02023-12-02

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/249419?v=4)[Kim Steinhaug](/maintainers/steinhaug)[@steinhaug](https://github.com/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

[appwrite/sdk-generator

SDK generator for Appwrite APIs across multiple programming languages and platforms

322207.2k3](/packages/appwrite-sdk-generator)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)[trafficcophp/bytebuffer

Node.js inspired byte stream buffer for PHP.

33478.1k19](/packages/trafficcophp-bytebuffer)[grafite/forms

A remarkably magical form package for Laravel.

376.9k1](/packages/grafite-forms)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40146.5k2](/packages/erlandmuchasaj-laravel-gzip)[phpinnacle/buffer

PHPinnacle binary buffer implementation

2498.3k11](/packages/phpinnacle-buffer)

PHPackages © 2026

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