PHPackages                             gugglegum/mb-str-pad - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. gugglegum/mb-str-pad

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gugglegum/mb-str-pad
====================

mb\_str\_pad() - multibyte implementation of str\_pad() function

1.0.1(4y ago)04.0k↓22.2%1MITPHPPHP &gt;=7.0

Since Nov 23Pushed 4y ago1 watchersCompare

[ Source](https://github.com/gugglegum/mb-str-pad)[ Packagist](https://packagist.org/packages/gugglegum/mb-str-pad)[ RSS](/packages/gugglegum-mb-str-pad/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (1)

mb\_str\_pad()
==============

[](#mb_str_pad)

This is true multibyte implementation of PHP's built-in string function `str_pad()` which support UTF-8 both in `$input` and in `$pad_string`.

This function is implemented as a static method of `MbString` class (not as a standalone function) because PHP doesn't doesn't support autoloading of functions on demand. You will not want to include it prior every usage.

Installation
------------

[](#installation)

Quite simple: `composer require gugglegum/mb-str-pad`

Usage
-----

[](#usage)

```
