youhey/c-sharp-ish-string-formatter
Composer 安装命令:
composer require youhey/c-sharp-ish-string-formatter
包简介
C# style string formatting (without optional format string)
README 文档
README
C# style string formatting (without optional format string)
Usage
simple format
use Youhey\StringFormatter\Formatter; // output "はじめまして 世界!" echo (new Formatter("{hello} {world}!"))->compile(["hello" => "はじめまして", "world" => "世界"]); // output "hello world!" echo (new Formatter("{0} {1}!"))->compile("hello", "world");
Test
# set up Docker images for php 7.2 $ docker build -t youhey/php72-stringformatter docker/php72 # set up Docker images for php 7.1 $ docker build -t youhey/php71-stringformatter docker/php71 # set up Docker images for php 7.0 $ docker build -t youhey/php70-stringformatter docker/php70 # composer install $ docker run --rm -v "$(pwd):/work" youhey/php72-stringformatter composer install # or docker run --rm -v "$(pwd):/work" youhey/php71-stringformatter composer install # or docker run --rm -v "$(pwd):/work" youhey/php70-stringformatter composer install # to run tests $ docker run --rm -v "$(pwd):/work" youhey/php72-stringformatter composer test # or docker run --rm -v "$(pwd):/work" youhey/php71-stringformatter composer test # or docker run --rm -v "$(pwd):/work" youhey/php70-stringformatter composer test
youhey/c-sharp-ish-string-formatter 适用场景与选型建议
youhey/c-sharp-ish-string-formatter 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 13 次下载、GitHub Stars 达 0, 最近一次更新时间为 2018 年 06 月 02 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 youhey/c-sharp-ish-string-formatter 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 youhey/c-sharp-ish-string-formatter 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-06-02