Statistics
1324
7
0
7d
Badges
Tags
utils
Dependencies

Utils

Build Status 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
  • 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.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

Is this addon outdated? Did you find an issue? Please report it.

Componette Componette admin@componette.com