PHPackages                             nette/utils - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. nette/utils

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

nette/utils
===========

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

v4.1.3(3mo ago)2.1k394.3M—1.5%153[9 issues](https://github.com/nette/utils/issues)[8 PRs](https://github.com/nette/utils/pulls)20BSD-3-ClausePHPPHP 8.2 - 8.5CI passing

Since May 25Pushed 1w ago53 watchersCompare

[ Source](https://github.com/nette/utils)[ Packagist](https://packagist.org/packages/nette/utils)[ Docs](https://nette.org)[ RSS](/packages/nette-utils/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (85)Used By (20)

[![Nette Utils](https://private-user-images.githubusercontent.com/194960/331364366-c33fdb74-0652-4cad-ac6e-c1ce0d29e32a.jpg?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzkxNzA2NTgsIm5iZiI6MTc3OTE3MDM1OCwicGF0aCI6Ii8xOTQ5NjAvMzMxMzY0MzY2LWMzM2ZkYjc0LTA2NTItNGNhZC1hYzZlLWMxY2UwZDI5ZTMyYS5qcGc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjYwNTE5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI2MDUxOVQwNTU5MThaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zZGFjYTBjZTJmMDRmYTFjNTA2YjdhYzYxMjYzZjc1MTg3N2I1MmRlZjczOGE0Y2U4MTg4OWFjOGQ1MTY3YjEyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZyZXNwb25zZS1jb250ZW50LXR5cGU9aW1hZ2UlMkZqcGVnIn0.X-CX4Hw0UdmC-YPsB-EMg-iZAxRE1S1V-S1qGtFplZo)](https://doc.nette.org/en/utils)

[![Downloads this Month](https://camo.githubusercontent.com/b8610f7da415cb7f45cdefc16dec7e18044db6a37b8b35060f176bce1df1422a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e657474652f7574696c732e737667)](https://packagist.org/packages/nette/utils)[![Tests](https://github.com/nette/utils/workflows/Tests/badge.svg?branch=master)](https://github.com/nette/utils/actions)[![Coverage Status](https://camo.githubusercontent.com/8a63c671c1927687a53ba57706cb41065ccf984555b1f3194d7d18098a1ff81b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f6e657474652f7574696c732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/nette/utils?branch=master)[![Latest Stable Version](https://camo.githubusercontent.com/b7fdf64034f1f4b78b06ae96565accab09a21f62db2306c28b0d80e236f4dd35/68747470733a2f2f706f7365722e707567782e6f72672f6e657474652f7574696c732f762f737461626c65)](https://github.com/nette/utils/releases)[![License](https://camo.githubusercontent.com/fa7d5fcf2c84b580327af52da95dd751703af65f079dc3c5a0081beac0789718/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4e65772532304253442d626c75652e737667)](https://github.com/nette/utils/blob/master/license.md)

Introduction
------------

[](#introduction)

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

✅ [Arrays](https://doc.nette.org/utils/arrays)
✅ [Callback](https://doc.nette.org/utils/callback) - PHP callbacks
✅ [Filesystem](https://doc.nette.org/utils/filesystem) - copying, renaming, …
✅ [Finder](https://doc.nette.org/utils/finder) - finds files and directories
✅ [Floats](https://doc.nette.org/utils/floats) - floating point numbers
✅ [Helper Functions](https://doc.nette.org/utils/helpers)
✅ [HTML elements](https://doc.nette.org/utils/html-elements) - generate HTML
✅ [Images](https://doc.nette.org/utils/images) - crop, resize, rotate images
✅ [Iterables](https://doc.nette.org/utils/iterables)
✅ [JSON](https://doc.nette.org/utils/json) - encoding and decoding
✅ [Generating Random Strings](https://doc.nette.org/utils/random)
✅ [Paginator](https://doc.nette.org/utils/paginator) - pagination math
✅ [PHP Reflection](https://doc.nette.org/utils/reflection)
✅ [Strings](https://doc.nette.org/utils/strings) - useful text functions
✅ [SmartObject](https://doc.nette.org/utils/smartobject) - PHP object enhancements
✅ [Type](https://doc.nette.org/utils/type) - PHP data type
✅ [Validation](https://doc.nette.org/utils/validators) - validate inputs

Installation
------------

[](#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](https://github.com/sponsors/dg)
--------------------------------------------

[](#support-me)

Do you like Nette Utils? Are you looking forward to the new features?

[![Buy me a coffee](https://camo.githubusercontent.com/afa7c20ccaac10ac4f1f51669bafb212856b932e0c8b276cb290336cf08624b8/68747470733a2f2f66696c65732e6e657474652e6f72672f69636f6e732f646f6e6174696f6e2d332e737667)](https://github.com/sponsors/dg)

Thank you!

###  Health Score

85

—

ExcellentBetter than 100% of packages

Maintenance91

Actively maintained with recent releases

Popularity83

Widely adopted with strong download metrics

Community60

Healthy contributor diversity

Maturity96

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 88.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~51 days

Recently: every ~20 days

Total

84

Last Release

85d ago

Major Versions

v2.5.7 → v3.2.12021-01-11

v2.5.x-dev → v3.0.x-dev2021-01-25

v3.2.9 → v4.0.02023-02-02

v3.2.10 → v4.0.12023-07-30

v3.2.x-dev → v4.0.42024-01-17

PHP version history (12 changes)v2.2.0PHP &gt;=5.3.1

v2.4.0PHP &gt;=5.6.0

v3.0.0PHP &gt;=7.1

v3.2.0PHP &gt;=7.2 &lt;8.1

v3.2.5PHP &gt;=7.2 &lt;8.2

v3.2.8PHP &gt;=7.2 &lt;8.3

v4.0.0PHP &gt;=8.0 &lt;8.3

v3.2.10PHP &gt;=7.2 &lt;8.4

v4.0.1PHP &gt;=8.0 &lt;8.4

v4.0.5PHP 8.0 - 8.4

v4.0.8PHP 8.0 - 8.5

v4.1.0PHP 8.2 - 8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/17f266513a3ca97500ec3d85d562b9279c7a6346358fe2b8d90390ece717a027?d=identicon)[david@grudl.com](/maintainers/david@grudl.com)

---

Top Contributors

[![dg](https://avatars.githubusercontent.com/u/194960?v=4)](https://github.com/dg "dg (1013 commits)")[![JanTvrdik](https://avatars.githubusercontent.com/u/175109?v=4)](https://github.com/JanTvrdik "JanTvrdik (29 commits)")[![janbarasek](https://avatars.githubusercontent.com/u/4738758?v=4)](https://github.com/janbarasek "janbarasek (13 commits)")[![vrana](https://avatars.githubusercontent.com/u/117453?v=4)](https://github.com/vrana "vrana (10 commits)")[![enumag](https://avatars.githubusercontent.com/u/539462?v=4)](https://github.com/enumag "enumag (8 commits)")[![matej21](https://avatars.githubusercontent.com/u/1276059?v=4)](https://github.com/matej21 "matej21 (6 commits)")[![kravco](https://avatars.githubusercontent.com/u/115938?v=4)](https://github.com/kravco "kravco (6 commits)")[![fprochazka](https://avatars.githubusercontent.com/u/158625?v=4)](https://github.com/fprochazka "fprochazka (6 commits)")[![Majkl578](https://avatars.githubusercontent.com/u/144181?v=4)](https://github.com/Majkl578 "Majkl578 (6 commits)")[![kukulich](https://avatars.githubusercontent.com/u/260445?v=4)](https://github.com/kukulich "kukulich (5 commits)")[![xificurk](https://avatars.githubusercontent.com/u/117465?v=4)](https://github.com/xificurk "xificurk (4 commits)")[![milo](https://avatars.githubusercontent.com/u/439140?v=4)](https://github.com/milo "milo (4 commits)")[![tomaswindsor](https://avatars.githubusercontent.com/u/614249?v=4)](https://github.com/tomaswindsor "tomaswindsor (3 commits)")[![hranicka](https://avatars.githubusercontent.com/u/3034538?v=4)](https://github.com/hranicka "hranicka (3 commits)")[![ondrejmirtes](https://avatars.githubusercontent.com/u/104888?v=4)](https://github.com/ondrejmirtes "ondrejmirtes (3 commits)")[![marian-r](https://avatars.githubusercontent.com/u/4215517?v=4)](https://github.com/marian-r "marian-r (2 commits)")[![dstrop](https://avatars.githubusercontent.com/u/20683175?v=4)](https://github.com/dstrop "dstrop (2 commits)")[![mkoubik](https://avatars.githubusercontent.com/u/136466?v=4)](https://github.com/mkoubik "mkoubik (2 commits)")[![juzna](https://avatars.githubusercontent.com/u/227416?v=4)](https://github.com/juzna "juzna (2 commits)")[![h4kuna](https://avatars.githubusercontent.com/u/335722?v=4)](https://github.com/h4kuna "h4kuna (2 commits)")

---

Tags

array-manipulationscomponentjsonnettenette-frameworkpaginationphptoolstraitutilitiesjsonslugifyvalidationutf-8arraystringunicodeutilitynettepaginatorpassworddatetimecoreimages

###  Code Quality

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/nette-utils/health.svg)

```
[![Health](https://phpackages.com/badges/nette-utils/health.svg)](https://phpackages.com/packages/nette-utils)
```

###  Alternatives

[danielstjules/stringy

A string manipulation library with multibyte support

2.4k26.0M191](/packages/danielstjules-stringy)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)[statamic/stringy

A string manipulation library with multibyte support, forked from @statamic

234.5M14](/packages/statamic-stringy)[ptrofimov/matchmaker

Ultra-fresh PHP matching functions

27167.7k](/packages/ptrofimov-matchmaker)[danielstjules/sliceable-stringy

Python string slices in PHP

4751.6k1](/packages/danielstjules-sliceable-stringy)[brunoconte3/dev-utils

A complete PHP utility library for validating, formatting, comparing data, and more.

3525.7k](/packages/brunoconte3-dev-utils)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
