wikimedia/wrappedstring
最新稳定版本:v4.1.0
Composer 安装命令:
composer require wikimedia/wrappedstring
包简介
Automatically compact sequentially-outputted strings that share a common prefix / suffix pair.
README 文档
README
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:
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.
统计信息
- 总下载量: 828.68k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-07-29