2017 © Pedro Peláez
 

library delimiter-align

Aligns and rebalances plain text multiline strings around a delimiter.

image

goblindegook/delimiter-align

Aligns and rebalances plain text multiline strings around a delimiter.

  • Thursday, September 10, 2015
  • by goblindegook
  • Repository
  • 0 Watchers
  • 0 Stars
  • 127 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

goblindegook/delimiter-align Build Status

Aligns and rebalances plain text multiline strings around a delimiter., (*1)

In short, it turns this:, (*2)

one: 1
two: 2
three: 3

into this:, (*3)

one:   1
two:   2
three: 3

Installation

Install using Composer by running the following in your project directory:, (*4)

$ 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., (*5)

Parameters

string

Multiline string to align., (*6)

delimiter

Boundary string to align around. (Optional, defaults to :.), (*7)

options

Alignment options:, (*8)

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., (*9)

The Versions

10/09 2015

dev-master

9999999-dev

Aligns and rebalances plain text multiline strings around a delimiter.

  Sources   Download

GPL-2.0+

The Development Requires

09/08 2015

0.2.0

0.2.0.0

  Sources   Download

The Development Requires

08/08 2015

0.1.0

0.1.0.0

  Sources   Download

The Development Requires