rquadling/polyfiller

There is no license information available for the latest version (v2.0.0) of this package.

A set of polyfillers for strings, arrays, etc. used by RQuadling's various projects

v2.0.0 2020-06-28 21:01 UTC

This package is auto-updated.

Last update: 2024-12-06 18:33:32 UTC


README

Build Status Code Coverage GitHub issues

PHP Version Stable Version

Total Downloads Monthly Downloads Daily Downloads

A set of polyfillers for strings, arrays, etc. used by RQuadling's various projects

Installation

Using Composer:

composer require rquadling/polyfiller

Polyfillers

  1. Arrays
    1. array_filter_keys - Filters elements of an array using a callback function, based upon the key.
    2. array_get - Returns the requested value from an array based upon the key or the default value if the key does not exist.
    3. array_to_table - Convert an array that fits a database result set into a plain text table.
  2. Classes
    1. class_uses_recursive - Returns all traits used by a class, its parent classes and trait of their traits.
    2. trait_uses_recursive - Returns all traits used by a trait and its traits.
  3. Strings
    1. mb_str_pad - Multibyte String Pad.
    2. str_to_kebab_case - Convert a string to kebab case.