summaryrefslogtreecommitdiff
path: root/vendor/wikimedia/wrappedstring/README.md
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2015-12-17 09:15:42 +0100
committerPierre Schmitz <pierre@archlinux.de>2015-12-17 09:44:51 +0100
commita1789ddde42033f1b05cc4929491214ee6e79383 (patch)
tree63615735c4ddffaaabf2428946bb26f90899f7bf /vendor/wikimedia/wrappedstring/README.md
parent9e06a62f265e3a2aaabecc598d4bc617e06fa32d (diff)
Update to MediaWiki 1.26.0
Diffstat (limited to 'vendor/wikimedia/wrappedstring/README.md')
-rw-r--r--vendor/wikimedia/wrappedstring/README.md24
1 files changed, 24 insertions, 0 deletions
diff --git a/vendor/wikimedia/wrappedstring/README.md b/vendor/wikimedia/wrappedstring/README.md
new file mode 100644
index 00000000..5c8b8fb0
--- /dev/null
+++ b/vendor/wikimedia/wrappedstring/README.md
@@ -0,0 +1,24 @@
+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.
+
+Here is how you use it:
+
+<pre lang="php">
+use WrappedString\WrappedString;
+
+$buffer = array(
+ new WrappedString( '[foo]', '[', ']' ),
+ new WrappedString( '[bar]', '[', ']' ),
+);
+$output = WrappedString::join( "\n", $buffer );
+// Result: '[foobar]'
+</pre>
+
+License
+-------
+
+The project is licensed under the MIT license.