ZeroPHP

Support Utilities

Support Utilities

Zero ships a family of dependency-free helpers under Zero\Lib\Support. Each one has its own per-method reference page under docs/support/.

TopicClass / namespaceDoc
StringsZero\Lib\Support\Strsupport/str.md
Fluent stringsZero\Lib\Support\Stringablesupport/stringable.md
ArraysZero\Lib\Support\Arrsupport/arr.md
CollectionsZero\Lib\Support\Collectionsupport/collection.md
NumbersZero\Lib\Support\Numbersupport/number.md
DatesZero\Lib\Support\Date / DateTimedate.md
HTTP clientZero\Lib\Httpsupport/http.md
SOAP clientHttp::soap()support/soap.md
FilesystemZero\Lib\Filesystem\Filesupport/filesystem.md
Global helperscore/libraries/Support/Helper.phphelpers.md

Code organization

Str, Arr, and Collection are composed of topical traits under core/libraries/Support/Concerns/<Class>/<Topic>.php. The public class names and FQCNs are unchanged — use Zero\Lib\Support\Str; etc. work exactly as before, and every existing Str::*, Arr::*, and Collection::* method continues to function identically.

The trait split mirrors the doc topic split, so each per-topic doc page corresponds to one trait file:

  • Str → 12 traits (Transforms, Search, Extraction, Replacement, Composition, Identity, Encoding, Pluralization, Casing, Padding, Random, Fluent)
  • Arr → 5 traits (Access, Iteration, Shape, Sorting, Tests) plus an Internal trait for shared helpers
  • Collection → 11 traits (Conversion, Iteration, Filtering, Querying, Mutation, Slicing, Reshaping, SetOperations, Sorting, Aggregates, Conditional)

Open the linked doc page for any class to see one example per method.