Skip to content
This repository was archived by the owner on Jul 28, 2024. It is now read-only.

Latest commit

Β 

History

History
38 lines (30 loc) Β· 2.38 KB

File metadata and controls

38 lines (30 loc) Β· 2.38 KB

Wavevision s.r.o.

Utils

CI Coverage Status PHPStan

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 and withMutation 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)