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
Requires
- php: ^7.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.16
- phpstan/phpstan: ^0.12
- phpunit/phpunit: ^9.2
This package is auto-updated.
Last update: 2024-12-06 18:33:32 UTC
README
A set of polyfillers for strings, arrays, etc. used by RQuadling's various projects
Installation
Using Composer:
composer require rquadling/polyfiller
Polyfillers
- Arrays
array_filter_keys
- Filters elements of an array using a callback function, based upon the key.array_get
- Returns the requested value from an array based upon the key or the default value if the key does not exist.array_to_table
- Convert an array that fits a database result set into a plain text table.
- Classes
class_uses_recursive
- Returns all traits used by a class, its parent classes and trait of their traits.trait_uses_recursive
- Returns all traits used by a trait and its traits.
- Strings
mb_str_pad
- Multibyte String Pad.str_to_kebab_case
- Convert a string to kebab case.