goblindegook/delimiter-align
最新稳定版本:0.2.0
Composer 安装命令:
composer require goblindegook/delimiter-align
包简介
Aligns and rebalances plain text multiline strings around a delimiter.
README 文档
README
Aligns and rebalances plain text multiline strings around a delimiter.
In short, it turns this:
one: 1
two: 2
three: 3
into this:
one: 1
two: 2
three: 3
Installation
Install using Composer by running the following in your project directory:
$ composer require goblindegook/delimiter-align
Description
string delimiter_align ( string $string [, string $delimiter ] [, array $options ] );
Aligns and rebalances plain text multiline strings around a delimiter.
Parameters
string
Multiline string to align.
delimiter
Boundary string to align around. (Optional, defaults to :.)
options
Alignment options:
| Option | Description | Default |
|---|---|---|
before |
String prepended to the padded delimiter. | (empty) |
after |
String appended to the padded delimiter. | ' ' |
pad |
Padding character. | ' ' |
right |
Align the delimiter by placing padding on the left. | false |
Return Value
Returns the string aligned around the provided delimiter.
统计信息
- 总下载量: 157
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: Unknown
- 更新时间: 2015-08-08