wavevision / utils
Useful PHP utilities and helpers.
Installs: 17 268
Dependents: 10
Suggesters: 0
Security: 0
Stars: 7
Watchers: 2
Forks: 1
Open Issues: 2
Requires
- php: >=7.4
- ext-fileinfo: *
- ext-iconv: *
- ext-json: *
- ext-zip: *
- nette/finder: ^2.5
- nette/utils: ^3.1
- softcreatr/jsonpath: ^0.7.3
Requires (Dev)
- mikey179/vfsstream: ^1.6
- php-coveralls/php-coveralls: ^2.1
- phpunit/phpunit: ^9.4
- wavevision/coding-standard: ^6.0
- dev-master
- 2.14.1
- 2.14.0
- 2.13.2
- 2.13.1
- 2.13.0
- 2.12.2
- 2.12.1
- 2.12.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.0
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.3
- 2.1.2
- 2.1.1
- 2.1.0
- 2.0.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.3
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.1
- 1.0.0
- dev-dependabot/composer/guzzlehttp/psr7-2.5.0
- dev-dependabot/composer/guzzlehttp/guzzle-7.4.5
- dev-fix/zip-directory
- dev-feature/zip
- dev-feature/long-string
This package is auto-updated.
Last update: 2024-08-20 00:10:14 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\SmartObject
andwithMutation
helper - 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)