承接 wikimedia/wrappedstring 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

GitHub 信息

  • Stars: 4
  • Watchers: 14
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-07-29