Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wavevision/utils
🛠Useful PHP utilities and helpers
https://github.com/wavevision/utils
nette php php-utilities utils
Last synced: 3 months ago
JSON representation
🛠Useful PHP utilities and helpers
- Host: GitHub
- URL: https://github.com/wavevision/utils
- Owner: wavevision
- License: mit
- Archived: true
- Created: 2019-08-30T13:34:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T20:49:26.000Z (over 1 year ago)
- Last Synced: 2024-09-21T12:41:31.981Z (4 months ago)
- Topics: nette, php, php-utilities, utils
- Language: PHP
- Homepage:
- Size: 489 KB
- Stars: 7
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Utils
[![CI](https://github.com/wavevision/utils/workflows/CI/badge.svg)](https://github.com/wavevision/utils/actions/workflows/ci.yml)
[![Coverage Status](https://coveralls.io/repos/github/wavevision/utils/badge.svg?branch=master)](https://coveralls.io/github/wavevision/utils?branch=master)
[![PHPStan](https://img.shields.io/badge/style-level%20max-brightgreen.svg?label=phpstan)](https://github.com/phpstan/phpstan)Set of useful PHP utilities and helpers extending [nette/utils](https://github.com/nette/utils).
## Installation
Via [Composer](https://getcomposer.org)
```bash
composer require wavevision/utils
```## Contents
The package contains useful classes for:
- [Arrays](./src/Utils/Arrays.php) – array helpers (manipulate, sort, extract etc.)
- [ContentTypes](./src/Utils/ContentTypes.php) – format extensions and filenames for content types
- [DOM](./src/Utils/DOM) – create and format data attributes for HTML elements
- [ExternalProgram](./src/Utils/ExternalProgram/Executor.php) – simple external command runner
- [FileInfo](./src/Utils/FileInfo.php) – get file info (basename, dirname, extension etc.)
- [Finder](./src/Utils/Finder.php) – adds sorting to [nette/finder](https://github.com/nette/finder)
- [ImageInfo](./src/Utils/ImageInfo.php) – get image content type and size
- [ImmutableObject](./src/Utils/ImmutableObject.php) – combines `Nette\SmartObject` and `withMutation` helper
- [Json](./src/Utils/Json.php) – JSON pretty encoder with PHP and JavaScript indents
- [Objects](./src/Utils/Objects.php) – dynamic get / set, get namespace, classname etc.
- [Path](./src/Utils/Path.php) – join path parts, stringify path object etc.
- [SerialNumber](./src/Utils/SerialNumber.php) – generate serial numbers from year and custom numbers
- [Server](./src/Utils/Server.php) – access some useful server info (e.g. file upload limit)
- [Strings](./src/Utils/Strings.php) – string helpers (encode, transform etc.)
- [Tokenizer](./src/Utils/Tokenizer/Tokenizer.php) – get structure from file (e.g. a class)
- [Validators](./src/Utils/Validators.php) – validate Czech and Slovak numbers (phone, personal, business)
- [Zip](./src/Utils/Zip) – simple ZIP archive helper (compress, extract)