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

Arrays Nette\Utils\Arrays
Callback Nette\Utils\Callback
Date and Time Nette\Utils\DateTime
Filesystem Nette\Utils\FileSystem
Finder Nette\Utils\Finder
Floats Nette\Utils\Floats
Helpers Nette\Utils\Helpers
HTML Elements Nette\Utils\Html
Images Nette\Utils\Image
Iterables Nette\Utils\Iterables
JSON Nette\Utils\Json
Paginator Nette\Utils\Paginator
PHP Reflection Nette\Utils\Reflection
PHP Types Nette\Utils\Type
Random Strings Nette\Utils\Random
Strings Nette\Utils\Strings
SmartObject & StaticClass Nette\SmartObject & Nette\StaticClass
Validators Nette\Utils\Validators


Download and install the package using Composer:

composer require nette/utils
version compatible with PHP
Nette Utils 4.0 PHP 8.0 – 8.3
Nette Utils 3.2 PHP 7.2 – 8.3
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.

If you are upgrading to a newer version, see the upgrading page.

version: 4.0 3.x 2.x