zhukmax/stringpad

Lib for add symbols to start or end of string like spaces, dots or any another.

Installs: 40

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/zhukmax/stringpad

1.1.0 2019-11-01 13:31 UTC

This package is auto-updated.

Last update: 2025-09-21 01:56:55 UTC


README

Software License Total Downloads

Lib for add symbols to start or end of string like spaces, dots or any another.

Install

composer require zhukmax/stringpad

Usage

<?php

require_once 'vendor/autoload.php';
use Zhukmax\StringPad;

echo StringPad::left(5, 6, 0); // => 000005
echo StringPad::right('b', 5, 'a'); // => baaaa