nette/utils bundles 17 PHP helper classes into one Composer package, and the README stops at the list
🛠 Lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
At a glance
- What is it?
- Strings, arrays, images, JSON, Finder, validators and more from the Nette project. Installation is one Composer command, while the actual API lives on doc.nette.org.
- Who is it for?
- Choose nette/utils if you write PHP 8.2 or newer and want one dependency covering strings, JSON, images, validation and file searching, and you are content to learn its API from doc.nette.org. Pass on it if you need examples in the repository itself, because the readme.md contains none.
- Can I use it commercially?
- Check first. The repository uses a licence we do not classify automatically, so read its LICENSE file before any commercial use.
- Is it still maintained?
- Yes. The repository last received commits 20 days ago.
- What is it written in?
- Mainly PHP, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 25, 2026, and from our analysis. They are not legal advice.
Star history
- nette/utils2,146 ★ · +0
| Repository | 2026-10-12 | 2026-11-25 |
|---|---|---|
| nette/utils | 2.1k | 2.1k |
0 Stars in the last 44 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
Seventeen helper classes sit behind a single composer require
The package nette/utils collects classes for everyday PHP work, and the README lists them one by one with a link each to doc.nette.org. The list covers Arrays, Callback for PHP callbacks, Filesystem for copying and renaming, Finder for finding files and directories, Floats, Helper Functions, HTML elements for generating HTML, Images for cropping, resizing and rotating, Iterables, JSON for encoding and decoding, Generating Random Strings, Paginator for pagination math, PHP Reflection, Strings, SmartObject, Type and Validation.
The repository description adds a few promises that the list does not repeat: safe JSON encoding and decoding, slug generation and strong password generation. Those come from the project's own tagline, so they are claims about the library and not details you can check in the README.
The primary language is PHP, the homepage is doc.nette.org/utils, and the repository is not archived. The top level holds src, tests, docs, composer.json and a readme.md, alongside configuration files such as phpstan.neon and dresscode.neon.
Version 4.1 and 4.0 both received releases within a day of each other in October 2026
The release list shows two lines moving together. Version 4.1.6 was tagged on 20 October 2026, and version 4.0.11 followed on 21 October 2026. The release before those was 4.1.5 on 17 July 2026. The last push to the repository came on 23 October 2026.
So a project pinned to the 4.0 branch still gets patch releases, and a project on 4.1 gets them too. The README does not explain what separates the two branches or which PHP versions 4.0 supports. It states a compatibility range only for 4.1.
If you maintain an application on an older PHP, that gap matters. You would have to read composer.json in the repository, or the package page on Packagist, to find what the 4.0 line requires. The README links to the Packagist page through its first badge row, along with a GitHub Actions build badge and a Coveralls badge for the master branch.
PHP 8.2 to 8.6 is the only compatibility statement, and it applies to 4.1
The README says Nette Utils 4.1 is compatible with PHP 8.2 to 8.6. That is the whole version policy in the documentation. The recommended install is through Composer:
composer require nette/utilsThere are no other install routes in the README. No manual download, no phar and no mention of framework integration. The package name matches the repository name, nette/utils, and the command takes no version constraint, so Composer resolves the newest release your PHP version allows.
If your server runs a PHP older than 8.2, the 4.1 line is not an option according to the README. Whether 4.0 would work is not answered in the README. The repository includes a .phpstorm.meta.php file at the top level, which is an IDE metadata file, and an AGENTS.md. Neither is described in the README.
Filesystem and Finder cover copying, renaming and file searches
Two of the listed classes work on the disk. Filesystem is described with the words copying, renaming and an ellipsis, so the README names two operations and implies others without listing them. Finder is described as finding files and directories.
That is all the README says about them. It does not state whether Finder follows symbolic links, whether it filters by glob, or whether Filesystem operations throw exceptions or return false on failure. Those answers sit in the linked doc pages, doc.nette.org/utils/filesystem and doc.nette.org/utils/finder.
For a reader deciding whether to depend on the package, this is the practical cost. You cannot judge the error behaviour of the file helpers from the repository README, so a short trial run in your own project, or a read through the tests directory, is the way to check before relying on them in production paths such as upload handling or cache cleanup.
Strings, JSON, random strings and validators handle input and output text
A second group deals with text and data. Strings is described as useful text functions. JSON is encoding and decoding, and the repository tagline calls it safe. Generating Random Strings has its own page, and the tagline separately mentions strong password generation and slug creation. Validation, linked as validators, is for validating inputs.
Arrays and Iterables round out the data-handling side, along with Floats for floating point numbers and Type for PHP data types. The README gives each of these a name and a link and nothing more, so the exact function names, such as how a slug is produced or what makes JSON handling safe, are not stated in the repository's readme.md.
What the tagline does tell you is that the library groups these under one namespace, so a project that needs only one of them still installs all of them. The README does not describe splitting the package into smaller ones. Keep that in mind if your dependency budget is strict.
Images, HTML elements and the Paginator are the output-side helpers
Three entries produce things a user sees. Images covers cropping, resizing and rotating. HTML elements generates HTML. Paginator is described as pagination math, meaning the arithmetic of pages, not a rendered page list.
The README does not say which image libraries or PHP extensions the Images class relies on. The README names no extension, so check doc.nette.org/utils/images and your PHP build before you rely on resizing in production.
SmartObject is described as PHP object enhancements, and PHP Reflection and Callback are the helpers aimed at developers instead of end users. Helper Functions is the catch-all entry. Because the README gives only one line per class, expect to spend time in the documentation to learn the call patterns, and expect the tests directory to be the most precise record of behaviour.
The README gives no code examples, and the license field reads NOASSERTION
The readme.md has three real parts: the class list, the Composer command with the PHP range, and a sponsor link to github.com/sponsors/dg. There is not a single usage example, so a first-time visitor cannot see what a call looks like without leaving for doc.nette.org.
The license is the other gap. The GitHub license field reads NOASSERTION, and the README mentions a license badge that links to license.md in the repository. The README text itself does not name a license, so open license.md and read it before you ship the package in a commercial product.
On upkeep, the facts are simple. The repository is not archived, and releases landed on 20 and 21 October 2026, so the maintainers are shipping. The Support Me section asks readers who like Nette Utils and look forward to new features to sponsor through GitHub Sponsors. It lists no roadmap, so the README does not tell you what the new features will be.
Editorial conclusion
Choose nette/utils if you write PHP 8.2 or newer and want one dependency covering strings, JSON, images, validation and file searching, and you are content to learn its API from doc.nette.org. Pass on it if you need examples in the repository itself, because the readme.md contains none. Before installing, read license.md in the repository, since the GitHub license field is NOASSERTION and the README does not name the license.
Frequently asked questions
How do I install nette/utils?
Install it with Composer by running composer require nette/utils. Nette Utils 4.1 is compatible with PHP 8.2 to 8.6.
What does nette/utils include?
It includes classes for arrays, callbacks, filesystem operations, Finder, floats, HTML elements, images, iterables, JSON, random strings, pagination, reflection, strings, SmartObject, types and validation.
Where is the nette/utils documentation?
The documentation lives at doc.nette.org/utils, with a separate page for each class listed in the README. The repository README itself contains no usage examples.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/nette-utils)Star history chart for your README
[](https://hysenlabs.com/projects/nette-utils)Was this useful?