nette/utils

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

Maintainers

👁 david@grudl.com

Package info

github.com/nette/utils

Homepage

pkg:composer/nette/utils

Statistics

Installs: 425 148 593

Dependents: 1 658

Suggesters: 10

Stars: 2 142

Open Issues: 18

v4.1.4 2026-05-11 20:49 UTC

Requires

  • php: 8.2 - 8.5

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()

Provides

None

Conflicts

Replaces

None

BSD-3-Clause, GPL-2.0-only, GPL-3.0-only 7da6c396d7ebe142bc857c20479d5e70a5e1aac7

jsonpaginatorvalidationarrayutilitypasswordnetteimagesslugifyutf-8stringcoreunicodedatetime


README

👁 Nette Utils

👁 Downloads this Month
👁 Tests
👁 Coverage Status
👁 Latest Stable Version
👁 License

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?

👁 Buy me a coffee

Thank you!