Utils Versions Save

🛠 Lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.

v3.2.5

2 years ago
  • support for PHP 8.1
  • added Type
  • Type, Reflection: supports intersection types
  • Reflection::getReturnType() & Type::fromReflection() return tentative type in PHP 8.1
  • Reflection::getUseStatements supports enums
  • Reflection: added 'never' built-in type
  • Reflection: getReturnTypes(), getParameterTypes(), getPropertyTypes() are deprecated
  • improved phpDoc, used generics
  • added ArrayList::from()

v3.1.6

2 years ago
  • added Type
  • improved phpDoc, used generics
  • Strings::replace: default replacement is empty string #241
  • Reflection: getReturnTypes(), getParameterTypes(), getPropertyTypes() are deprecated

v3.2.3

2 years ago
  • FileSystem: Add method makeWritable() (#244)
  • Paginator: add firstItemOnPage & lastItemOnPage #262 (#263)
  • ObjectHelpers: improved error messages, added scope

v3.2.2

3 years ago
  • Arrays: added wrap() method (#180)
  • Arrays::insertAfter() & insertBefore() fixed when $key is null
  • DateTime::fromParts() is non-locale aware #248
  • compatibility: improved code hinting

v3.2.1

3 years ago
  • added Arrays::first(), last() & contains()
  • added Array::invoke() & invokeMethod()
  • Arrays: some methods accepts iterable
  • Strings::toAscii() fixed to correctly convert german umlauts (BC break) (#240)
  • Strings::replace: default replacement is empty string #241

For the details you can have a look at the diff.

v3.2.0

3 years ago
  • requires PHP 7.2
  • Added Nette\Utils\Floats class for comparing floats (#221)
  • Arrays: searchKey() silently renamed to getKeyOffset()
  • Callback::closure() triggers deprecation notice
  • Image: added detectTypeFromFile() and detectTypeFromString()
  • Reflection::toString() appends () after function/method name
  • Strings::toAscii - triggers E_USER_NOTICE when ext-intl is not present
  • renamed Nette\Localization\ITranslator -> Translator, added class alias
  • renamed Nette\Utils\IHtmlString -> Nette\HtmlStringable, added class alias

v3.1.4

3 years ago
  • Reflection: added getReturnTypes(), getParameterTypes() and getPropertyTypes()
  • Reflection::getReturnType(), getParameterType() and getPropertyType() throws exception on union types
  • Image::fromString() throws UnknownImageFileException when file type is unknown

For the details you can have a look at the diff.

v3.0.4

3 years ago
  • compatible with PHP 8.0
  • Image::fromString() throws UnknownImageFileException when file type is unknown
  • Image: better processing and checking dimensions in strings #217
  • DateTime::from(null) fixed #211

For the details you can have a look at the diff.

v2.5.5

3 years ago
  • compatible with PHP 8.0
  • Image: better processing and checking dimensions in strings #217
  • Html::getText() decodes '

For the details you can have a look at the diff.

v3.1.3

3 years ago
  • compatible with PHP 8.0
  • Arrays::renameKey() fixed incorrect replacement for existing new keys #230
  • Arrays::renameKey() returns true if $oldKey was found
  • Arrays: added toKey()
  • improved PHP doc
  • Reflection: fixed parseUseStatements for PHP 8 #229
  • SmartObject: better support for $onEvent with typehint
  • Image: added new PHP functions
  • Strings: ICONV_IMPL can be quoted
  • FileSystem: Added $mode to all exceptions.
  • Image: compatibility with PHP 8.0
  • Reflection: added PHP 8 type 'static'
  • Reflection::isBuiltinType() added PHP 8 types mixed & false
  • Reflection::getReturnType() fixed for functions
  • SmartObject: removed return void

For the details you can have a look at the diff.