nette/utils
🛠Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.
Installs: 11 929 571
Dependents: 1 093
Suggesters: 4
Stars: 883
Watchers: 60
Forks: 111
Open Issues: 14
Requires
- php: >=7.1
Requires (Dev)
- nette/tester: ~2.0
- tracy/tracy: ^2.3
Suggests
- ext-iconv: to use Strings::webalize() and toAscii()
- ext-json: to use Nette\Utils\Json
- ext-intl: to use Strings::webalize(), toAscii(), normalize() and compare()
- ext-mbstring: to use Strings::lower() etc...
- ext-xml: to use Strings::length() etc. when mbstring is not available
- ext-gd: to use Image
- ext-tokenizer: to use Nette\Utils\Reflection::getUseStatements()
- dev-master / 3.0.x-dev
- v3.0.2
- v3.0.1
- v3.0.0
- v2.5.x-dev
- 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
README
Introduction
In package nette/utils you will find a set of useful classes for everyday use:
- Arrays - manipulate arrays
- Callback - PHP callbacks
- Date and Time - modify times and dates
- Filesystem - copying, renaming, …
- HTML elements - generate HTML
- Images - crop, resize, rotate images
- JSON - encoding and decoding
- Generating Random Strings
- Pagination - comfort pagination
- Strings - useful text transpilers
- SmartObject - PHP Object Enhancements
- Validation - validate inputs
Documentation can be found on the website.
Installation
The recommended way to install is via Composer:
composer require nette/utils
- Nette Utils 3.0 is compatible with PHP 7.1 to 7.4
- Nette Utils 2.5 is compatible with PHP 5.6 to 7.4