simplikocz / utils
Useful PHP utilities and helpers.
3.3
2026-04-29 14:01 UTC
Requires
- php: ^8.4
- ext-fileinfo: *
- ext-iconv: *
- ext-json: *
- ext-zip: *
- nette/finder: ^3.0
- nette/utils: ^4.0
- softcreatr/jsonpath: ^1.0
Requires (Dev)
- mikey179/vfsstream: ^1.6
- php-coveralls/php-coveralls: ^2.9
- phpunit/phpunit: ^13.0
- wavevision/coding-standard: ^6.0
This package is auto-updated.
Last update: 2026-09-01 06:33:53 UTC
README
Utils
Set of useful PHP utilities and helpers extending nette/utils.
Installation
Via Composer
composer require wavevision/utils
Contents
The package contains useful classes for:
- Arrays – array helpers (manipulate, sort, extract etc.)
- ContentTypes – format extensions and filenames for content types
- DOM – create and format data attributes for HTML elements
- ExternalProgram – simple external command runner
- FileInfo – get file info (basename, dirname, extension etc.)
- Finder – adds sorting to nette/finder
- ImageInfo – get image content type and size
- ImmutableObject – combines
Nette\SmartObjectandwithMutationhelper - Json – JSON pretty encoder with PHP and JavaScript indents
- Objects – dynamic get / set, get namespace, classname etc.
- Path – join path parts, stringify path object etc.
- SerialNumber – generate serial numbers from year and custom numbers
- Server – access some useful server info (e.g. file upload limit)
- Strings – string helpers (encode, transform etc.)
- Tokenizer – get structure from file (e.g. a class)
- Validators – validate Czech and Slovak numbers (phone, personal, business)
- Zip – simple ZIP archive helper (compress, extract)