🛠 Lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
OTHER License
Bot releases are hidden (Show)
Published by dg 2 months ago
Strings::matchAll()
: added option 'lazy'Arrays::mapWithKeys()
& Iterables::mapWithKeys()
Iterables::memoize()
& toIterator()
Iterables
Arrays::firstKey()
, lastKey()
Arrays::filter()
Arrays::first()
& last()
: added parameter $elseArrays::first()
& last()
: added parameter $predicate #305Image::getSupportedTypes()
Strings::trim()
trims unicode spaces and ZWSP (#304)Published by dg 12 months ago
Image::rgb()
Image::rectangleWH()
, filledRectangleWH()
, calculateTextBox()
Published by dg about 1 year ago
Strings::length()
uses mbstring, iconv and then utf8_decode #299getType()
replaced with isDir()
/ isFile()
some()
, every()
and map()
(#298)Published by dg about 1 year ago
Callback::unwrap()
returns correct class name for private methodsgetParameterType()
, getReturnType()
and getPropertyType()
marked as deprecatedPublished by dg about 1 year ago
Image::isTypeSupported()
collect()
returns listCallback::unwrap()
returns correct class name for private methodsPublished by dg over 1 year ago
new methods:
new parameters:
removed
Published by dg over 1 year ago
isTypeDeclaration()
, isBuiltinType()
, isClassKeyword()
Types::isSingle()
-> isSimple()
Published by dg about 2 years ago
Image::clone()
uses PNG format because GD2 is disabled since libgd 2.3.3extensionToType()
Published by dg over 2 years ago
Arrays::isList()
uses array_is_list()
is PHP 8.1Deprecated properties are written as @property-deprecated
, no standard here exists. PhpStorm and static analysis tools do not see them, which is the intention.
Published by dg almost 3 years ago
Strings::indexOf()
fixed empty $haystack and negative $nth #271Helpers::clamp()
Validators::isPhpIdentifier()
: Value is always string. (#268)Reflection::expandClassName()
recognizes 'parent'Reflection::isClassKeyword()
, Type::isClassKeyword()
Published by dg about 3 years ago
Reflection::getReturnType()
& Type::fromReflection()
return tentative type in PHP 8.1getReturnTypes()
, getParameterTypes()
, getPropertyTypes()
are deprecatedArrayList::from()
Published by dg about 3 years ago
getReturnTypes()
, getParameterTypes()
, getPropertyTypes()
are deprecatedPublished by dg about 3 years ago
makeWritable()
(#244)Published by dg over 3 years ago
wrap()
method (#180)Arrays::insertAfter()
& insertBefore()
fixed when $key is nullDateTime::fromParts()
is non-locale aware #248Published by dg almost 4 years ago
first()
, last()
& contains()
invoke()
& invokeMethod()
toAscii()
fixed to correctly convert german umlauts (BC break) (#240)For the details you can have a look at the diff.
Published by dg almost 4 years ago
Published by dg almost 4 years ago
getReturnTypes()
, getParameterTypes()
and getPropertyTypes()
getReturnType()
, getParameterType()
and getPropertyType()
throws exception on union typesfromString()
throws UnknownImageFileException when file type is unknownFor the details you can have a look at the diff.
Published by dg almost 4 years ago
fromString()
throws UnknownImageFileException when file type is unknownFor the details you can have a look at the diff.
Published by dg almost 4 years ago
getText()
decodes 'For the details you can have a look at the diff.