Copied!
  • psalm-immutable
CloneableInstantiable
Methods
public static filter_sanitize_string_polyfill(string $str)
 

Constant FILTER_SANITIZE_STRING polyfill for PHP > 8.1

  • param string $str
  • return false|string
public static filterString( $input, int $normalization_form = 16Normalizer::NFC, string $leading_combining = '◌')
 

Normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.

  • param mixed $input
  • param int $normalization_form
  • param string $leading_combining
  • return mixed
public static get_random_bytes( $length)
 

Get random bytes via "random_bytes()"

  • param int $length
  • throws \Exception if it was not possible to gather sufficient entropy
  • return false|string
public static initAll() : bool
 
  • return bool
public static is_php( $version) : bool
 

Determines if the current version of PHP is equal to or greater than the supplied value.

  • param string $version
  • return bool
  • psalm-pure
Methods
public static filter_sanitize_string_polyfill(string $str)
 

Constant FILTER_SANITIZE_STRING polyfill for PHP > 8.1

  • param string $str
  • return false|string
public static filterString( $input, int $normalization_form = 16Normalizer::NFC, string $leading_combining = '◌')
 

Normalizes to UTF-8 NFC, converting from WINDOWS-1252 when needed.

  • param mixed $input
  • param int $normalization_form
  • param string $leading_combining
  • return mixed
public static get_random_bytes( $length)
 

Get random bytes via "random_bytes()"

  • param int $length
  • throws \Exception if it was not possible to gather sufficient entropy
  • return false|string
public static initAll() : bool
 
  • return bool
public static is_php( $version) : bool
 

Determines if the current version of PHP is equal to or greater than the supplied value.

  • param string $version
  • return bool
  • psalm-pure
© 2024 Bruce Wells
Search Namespaces \ Classes
Configuration