empaphy/usephul

Provides useful classes and functions that extend the standard functionality of PHP.

Installs: 13 612

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/empaphy/usephul

v1.2.1 2025-10-02 11:57 UTC

README

Tests Quality

Usephul is a PHP library that provides useful classes and functions that extend the standard functionality of PHP.

Functions

Array Functions

Path Functions

Generator Functions

Math Functions

  • greatest() — Finds the value that is greater than all the other values.
  • least() — Finds the value that is less than all the other values.
  • rank() — Returns the ordinal rank for a given value.

Variable handling Functions

Attribute Functions

  • applies() — Finds whether an attribute has been applied to a given object, class, interface, or trait.

Trait Functions

  • uses() — Checks whether an object or class uses a given trait.

SPL Functions

Classes

Paths

  • PathInfo — Provides information about a file path.

Traits

Enumerations

  • EnumDynamicity — Adds dynamicity of case names to PHP Enumerations.