monolyth / plumber
Utilities for the Monolyth unframework
Installs: 272
Dependents: 1
Suggesters: 1
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/monolyth/plumber
Requires
- ext-mbstring: *
Requires (Dev)
- toast/unit: ^1.3
This package is auto-updated.
Last update: 2025-10-15 01:17:25 UTC
README
Utilities for the Monolyth unframework
Installation
Composer (recommended)
$ composer require monolyth/plumber
Manual
- Download or clone the repository;
- Add
/path/to/plumber/srcfor namespaceMonolyth\Plumberto your PSR-4 autoloader.
Usage
Currently only 2 utilities are included: Utf8 and Proxy. Statically call
the handle method on the classes to utilise them.
Utf8
The Utf8::handle method normalises PHP's UTF-8 handling.
Proxy
The Proxy::handle method attempts to normalise the X_HTTP_FORWARDED_FOR
header so you can just use REMOTE_ADDR everywhere. Note that not all proxies
handle this the same, so you might need to roll your own.