2017 © Pedro Peláez
 

library leftpad

There just should be a leftpad function for PHP

image

alexsoft/leftpad

There just should be a leftpad function for PHP

  • Sunday, October 8, 2017
  • by alexsoft
  • Repository
  • 1 Watchers
  • 2 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

Left Pad for PHP

Latest Version on Packagist, (*1)

A whole package is just one file with a single function \Alexsoft\Leftpad\leftpad(string $string, int $length, string $filler): string, (*2)

$string - your initial string
$length - final length of returned string
$filler - symbol with which initial string should be left padded

1. Install

composer require alexsoft/leftpad

2. Use it

\Alexsoft\Leftpad\leftpad('foo', 5) // => "  foo"

\Alexsoft\Leftpad\leftpad('1', 3, '0') // => "001"

The Versions

08/10 2017

dev-master

9999999-dev

There just should be a leftpad function for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

27/03 2016

v1.0.2

1.0.2.0

There just should be a leftpad function for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

24/03 2016

v1.0.1

1.0.1.0

There just should be a leftpad function for PHP

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

24/03 2016

v1.0.0

1.0.0.0

There just should be a leftpad function for PHP

  Sources   Download

MIT

The Development Requires