2017 © Pedro Peláez
 

library wrappedstring

Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.

image

wikimedia/wrappedstring

Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.

  • Saturday, July 28, 2018
  • by mediawiki
  • Repository
  • 17 Watchers
  • 2 Stars
  • 189,873 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 6 % Grown

The README.md

WrappedString

WrappedString is a small PHP library for compacting redundant string-wrapping code in text output. The most common use-case is to eliminate redundant runs of HTML open/close tags and JavaScript boilerplate., (*1)

Here is how you use it:, (*2)

use Wikimedia\WrappedString;

$buffer = [
    new WrappedString( '[foo]', '[', ']' ),
    new WrappedString( '[bar]', '[', ']' ),
];
$output = WrappedString::join( "\n", $buffer );
// Result: '[foobar]'

License

The project is licensed under the MIT license., (*3)

The Versions

28/07 2018

dev-master

9999999-dev https://www.mediawiki.org/wiki/WrappedString

Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.

  Sources   Download

MIT

The Requires

  • php >=5.6.99

 

The Development Requires

by Timo Tijhof

05/06 2018
23/05 2018
30/12 2017

v2.3.0

2.3.0.0 https://www.mediawiki.org/wiki/WrappedString

Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Timo Tijhof

21/07 2016

v2.2.0

2.2.0.0 https://www.mediawiki.org/wiki/WrappedString

Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Timo Tijhof

07/07 2016

v2.1.1

2.1.1.0 https://www.mediawiki.org/wiki/WrappedString

Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Timo Tijhof

07/07 2016

v2.1.0

2.1.0.0 https://www.mediawiki.org/wiki/WrappedString

Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

The Development Requires

by Timo Tijhof

31/07 2015

v2.0.0

2.0.0.0 https://www.mediawiki.org/wiki/WrappedString

Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Timo Tijhof

30/07 2015

v1.0.0

1.0.0.0 https://www.mediawiki.org/wiki/WrappedString

Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Timo Tijhof