nette / utils
🛠Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
Installs: 349 234 385
Dependents: 1 642
Suggesters: 10
Security: 0
Stars: 2 114
Watchers: 53
Forks: 151
Open Issues: 22
pkg:composer/nette/utils
Requires
- php: 8.0 - 8.5
 
Requires (Dev)
- jetbrains/phpstorm-attributes: ^1.2
 - nette/tester: ^2.5
 - phpstan/phpstan-nette: ^2.0@stable
 - tracy/tracy: ^2.9
 
Suggests
- ext-gd: to use Image
 - ext-iconv: to use Strings::webalize(), toAscii(), chr() and reverse()
 - ext-intl: to use Strings::webalize(), toAscii(), normalize() and compare()
 - ext-json: to use Nette\Utils\Json
 - ext-mbstring: to use Strings::lower() etc...
 - ext-tokenizer: to use Nette\Utils\Reflection::getUseStatements()
 
Conflicts
- nette/finder: <3
 - nette/schema: <1.2.2
 
- dev-master / 4.1.x-dev
 - v4.0.x-dev
 - v4.0.8
 - v4.0.7
 - v4.0.6
 - v4.0.5
 - v4.0.4
 - v4.0.3
 - v4.0.2
 - v4.0.1
 - v4.0.0
 - v3.2.x-dev
 - v3.2.10
 - v3.2.9
 - v3.2.8
 - v3.2.7
 - v3.2.6
 - v3.2.5
 - v3.2.3
 - v3.2.2
 - v3.2.1
 - v3.2.0
 - v3.1.x-dev
 - v3.1.6
 - v3.1.4
 - v3.1.3
 - v3.1.2
 - v3.1.1
 - v3.1.0
 - v3.0.x-dev
 - v3.0.4
 - v3.0.3
 - v3.0.2
 - v3.0.1
 - v3.0.0
 - v2.5.x-dev
 - v2.5.7
 - v2.5.6
 - v2.5.5
 - v2.5.4
 - v2.5.3
 - v2.5.2
 - v2.5.1
 - v2.5.0
 - v2.4.x-dev
 - v2.4.10
 - v2.4.9
 - v2.4.8
 - v2.4.7
 - v2.4.6
 - v2.4.5
 - v2.4.4
 - v2.4.3
 - v2.4.2
 - v2.4.1
 - v2.4.0
 - v2.3.x-dev
 - v2.3.11
 - v2.3.10
 - v2.3.9
 - v2.3.8
 - v2.3.7
 - v2.3.6
 - v2.3.5
 - v2.3.4
 - v2.3.3
 - v2.3.2
 - v2.3.1
 - v2.3.0
 - v2.2.x-dev
 - v2.2.8
 - v2.2.7
 - v2.2.6
 - v2.2.5
 - v2.2.4
 - v2.2.3
 - v2.2.2
 - v2.2.1
 - v2.2.0
 
This package is auto-updated.
Last update: 2025-10-31 00:46:04 UTC
README
Introduction
In package nette/utils you will find a set of useful classes for everyday use:
✅ Arrays
✅ Callback - PHP callbacks
✅ Filesystem - copying, renaming, …
✅ Finder - finds files and directories
✅ Floats - floating point numbers
✅ Helper Functions
✅ HTML elements - generate HTML
✅ Images - crop, resize, rotate images
✅ Iterables 
✅ JSON - encoding and decoding
✅ Generating Random Strings
✅ Paginator - pagination math
✅ PHP Reflection
✅ Strings - useful text functions
✅ SmartObject - PHP object enhancements
✅ Type - PHP data type
✅ Validation - validate inputs
Â
Installation
The recommended way to install is via Composer:
composer require nette/utils
Nette Utils 4.1 is compatible with PHP 8.2 to 8.5.
Â
Support Me
Do you like Nette Utils? Are you looking forward to the new features?
Thank you!