Componette

Componette

wavevision

wavevision / utils 2.14.1

๐Ÿ›  Useful PHP utilities and helpers

download-cloud-line composer require wavevision/utils

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)
  • 2.14.1

  • 2.14.0 2.14.0

    Add ImmutableObject trait

  • 2.13.1 Upgrade to latest major versions

  • 2.12.2 Fix ZipArchive top-level directory name

  • 2.12.1

    • fix ZipArchive with directories and subdirectories being compressed
  • 2.12.0

    • add ZIP archive helper
  • 1.2.3 Updated path utils

  • 1.0.1 Update coding standard

  • 1.0.0 First release

bar-chart-fill

Statistics

download-cloud-fill
15959
star-fill
7
bug-fill
2
flashlight-fill
344d
price-tag-2-line

Badges

guide-fill

Dependencies

php (>=7.2)
ext-iconv (*)
Componette Componette felix@nette.org