Search by

mwx / lib

metaworx

Dependency-light PHP base library: arrays, strings, streams, files, enums, reflection and debug helpers

0.1.1 2026-09-24 10:29 UTC

This package is auto-updated.

Last update: 2026-09-24 09:08:34 UTC


README

Dependency-light PHP base library. Everything it ships lives under mwx\Lib\; the mwx\ root belongs to no package.

Contents

NamespaceWhat it holds
mwx\Lib\Options, Utils, Serializer, WeakList, NotFound sentinel, magic getter/setter traits
mwx\Lib\Arrays\ArrayHelper (merge, filter, path access), ArrayAccess trait/interfaces, Replace/UnsetArrayValue
mwx\Lib\Strings\StringHelper
mwx\Lib\Streams\Stream classes and filters, StdIO
mwx\Lib\Files\FileInfo, the Pathable* family, FilterDefinition
mwx\Lib\Enums\Enum framework: EnumArray variants, dynamic enums, EnumExtensionTrait
mwx\Lib\Debug\Trace (caller introspection)
mwx\Lib\Reflection\InaccessibleMethodArg, AccessInaccessibleTrait
mwx\Lib\Exceptions\Pure path/argument/config exceptions

Dependencies

ext-json and the symfony components yaml (ArrayHelper parsing and dumping), filesystem (FileInfo), property-access and stopwatch. The last two are slimming candidates: property-access supplies a single exception class and stopwatch a single type hint, both in Utils.

Serialized-data handling lives in the separate mwx/serialized package.

Install

composer require mwx/lib

MIT license.