An open API service indexing awesome lists of open source software.

https://github.com/sehrgutesoftware/mb-str-pad

Multibyte-capable alternative to php's builtin str_pad() function
https://github.com/sehrgutesoftware/mb-str-pad

multibyte multibyte-strings php php7 string

Last synced: 5 months ago
JSON representation

Multibyte-capable alternative to php's builtin str_pad() function

Awesome Lists containing this project

README

          

# mb_str_pad()

[![Travis Build Status](https://img.shields.io/travis/sehrgutesoftware/mb-str-pad/master.svg?style=flat-square)](https://travis-ci.org/sehrgutesoftware/mb-str-pad)

> Multibyte-capable alternative to php's builtin str_pad() function

It has exactly the same interface as the original `str_pad()` function, which is documented here: [https://secure.php.net/manual/en/function.str-pad.php](https://secure.php.net/manual/en/function.str-pad.php)

## Installation
```sh
composer require sehrgut/mb-str-pad
```

## Usage
Composer should autoload the `mb_str_pad()` function into global namespace. Use it just like any built-in function.

## Testing
```sh
composer test
```

## License
Public Domain