Download the PHP package joby/toolbox without Composer
On this page you can find all versions of the php package joby/toolbox. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Package toolbox
Short Description A lightweight collection of useful general purpose PHP tools with no dependencies. Committed to always at least having minimal dependencies.
License MIT
Informations about the package toolbox
Joby's PHP Toolbox
A lightweight collection of useful general purpose PHP tools with no dependencies. Committed to always at least having minimal dependencies.
URL-safe Base64
Encoding has functions for URL-safe base64 encoding. Simple implementation that replaces + and / with - and _, respectively. Also strips right padding = signs as they are not necessary for decoding.
Array Tools
The ArrayFunctions class provides enhanced array manipulation capabilities:
-
shift_n: Shifts multiple elements from the start of an array at once
-
pop_n: Pops multiple elements from the end of an array at once
- min/max: Enhanced versions of PHP's min/max functions with special handling for null values
Sorting Tools
The sorting component provides flexible and powerful sorting capabilities:
Sort Class
Static interface for one-time sorting operations:
Sorter Class
For reusable sorting operations:
Sortable Interface
Objects can implement the Sortable interface to provide a default sorting value:
Range Tools
The Ranges component provides tools for working with ranges of values:
AbstractRange
An abstract base class for implementing ranges with various value types:
- Boolean operations:
booleanAnd,booleanOr,booleanXor,booleanNot - Comparison methods:
equals,intersects,contains,adjacent - Boundary management:
setStart,setEnd,start,end
RangeCollection
Manages collections of ranges with operations for merging and manipulation:
IntegerRange
A concrete implementation of AbstractRange for integer values.