# nette/utils

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

Repository: https://github.com/nette/utils
Canonical: https://ross.abutalabs.com/products/utils
Homepage: https://doc.nette.org/utils
Language: PHP
License: NOASSERTION
License Family: other
Topics: nette, component, php, tools, utilities, nette-framework, trait, pagination, json, array-manipulations
Last push: 2026-08-18T09:55:53+00:00

## Health v2 (maintenance only)
Score: 92/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 98, release rhythm 81, longevity 100
- inputs: {"age_days": 4552, "days_push": 15, "days_rel": 47, "gap_med": 64, "n_releases_24m": 10}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2144, forks 154 (observed 2026-08-28T04:06:18.636970+00:00)

## What it is
nette/utils is a lightweight PHP library of everyday utility classes covering arrays, strings, JSON, filesystem, images, pagination, validation, and random string generation. It is part of the Nette Framework ecosystem but usable standalone via Composer.

## Use cases
- manipulate strings and arrays in php
- safely encode and decode json in php
- crop resize and rotate images in php
- generate url slugs or strong random passwords
- validate user input in php
- paginate results with pagination math
- find files and directories with a fluent finder

## When to choose
- you need a well-tested, dependency-light utility toolkit for PHP 7.1+ projects
- you want safe JSON handling, image manipulation, or string helpers without writing them yourself
- you are building on the Nette Framework and want its standard utilities

## When to avoid
- you work outside PHP entirely
- you need heavy-duty image processing or a full validation framework beyond simple input checks
- you prefer framework-agnostic alternatives like Symfony's string/validator components

## Facets
- artifact type: library
- maturity: stable
- function: serialization, image-processing, parser, file-system, json, developer-tools
- domain: developer-tools, web-development, backend, files
- platform: php, cli, cross-platform
- tags: string-manipulation, array-helpers, pagination, validation, slug-generation, password-generation, nette-framework, composer-package

## Member repositories
- nette/utils (main) score 92

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:18.636970+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:51:14.225191+00:00, confidence not recorded.
  - readme: https://github.com/nette/utils (fetched 2026-08-28T04:06:18.636970+00:00, sha dbe7cc506d96)
  - homepage: https://doc.nette.org/utils (fetched 2026-08-29T10:31:32.346905+00:00, sha 46b99b98a62d)
  - site_page: https://doc.nette.org/en/contributing/documentation (fetched 2026-08-29T10:31:32.357610+00:00, sha 7d2a71a103a6)
  - site_page: https://doc.nette.org/en (fetched 2026-08-29T10:31:32.355806+00:00, sha 593c2062fa13)
  - site_page: https://nette.org/en/releases (fetched 2026-08-29T10:31:32.359692+00:00, sha aa39e1b5cbb1)
  - site_page: https://doc.nette.org (fetched 2026-08-29T10:31:32.366110+00:00, sha b052116b2a14)
  - site_page: https://nette.org/en/history (fetched 2026-08-29T10:31:32.367853+00:00, sha 286192274b00)
- Data as of 2026-08-30T08:39:29.467469+00:00.
