k0pernikus / left-pad.io-php
PHP wrapper library to consumes the http://left-pad.io/
dev-master
2016-03-28 12:36 UTC
Requires
- php: >=5.4
This package is not auto-updated.
Last update: 2024-09-28 19:04:08 UTC
README
Use leftpad like a pro, even in php!
Why?
You may think you are save to use leftpad. But what do you do if it gets unpublished due to a ragequit? Better trust the cloud!
Usage:
echo (new LeftPad(new LeftPadIoFetcher()))
->pad('Horst', '@', 13);
This will echo @Horst
.