polyfills/mb-trim

PHP: Provides a user-land polyfill for `mb_trim`, `mb_ltrim`, and `mb_rtrim` functions added in PHP 8.4.

v0.1.2 2024-01-10 12:10 UTC

This package is auto-updated.

Last update: 2024-11-07 09:31:06 UTC


README

Latest Stable Version License PHP Version Require

Provides user-land PHP polyfills for the mb_trim, mb_ltrim, and mb_rtrim functions added in PHP 8.4.

Requires PHP 8,1, 8.2 or PHP 8.3 with mbstring extension. Not supported on PHP 8.4 because these functions are natively implemented in PHP 8.4.

Installation

composer require polyfills/mb-trim

Usage

Simply use the mb_trim, mb_ltrim, and mb_rtrim functions as if they were declared already.

Contributions

Contributions are welcome either as a GitHub issue or a PR to this repo.