In package nette/utils you will find a set of useful classes for everyday use:

PHP Object Enhancements Nette\SmartObject
Images Nette\Utils\Image
Paginator Nette\Utils\Paginator
Validators Nette\Utils\Validators
Strings Nette\Utils\Strings
Comparing floats Nette\Utils\Floats
Callback Nette\Utils\Callback
Arrays Nette\Utils\Arrays
Date and Time Nette\Utils\DateTime
Generate HTML Code Nette\Utils\Html
Generate Random Strings Nette\Utils\Random
PHP Reflection Nette\Utils\Reflection
JSON Nette\Utils\Json
Filesystem Nette\Utils\FileSystem
Finder Nette\Utils\Finder
Helper Functions Nette\Utils\Helpers
Types Nette\Utils\Type


Download and install the package using Composer:

composer require nette/utils
version compatible with PHP
Nette Utils 4.0 PHP 8.0 – 8.2
Nette Utils 3.2 PHP 7.2 – 8.2
Nette Utils 3.0 – 3.1 PHP 7.1 – 8.0
Nette Utils 2.5 PHP 5.6 – 8.0

Applies to the latest patch versions.