qu1x-roundcube/signifix
Composer 安装命令:
composer require qu1x-roundcube/signifix
包简介
Formats bytes with metric or binary prefixes using four significant figures.
README 文档
README
Formats bytes with metric or binary prefixes using four significant figures.
Roundcube uses non-standardized prefixes in byte units (i.e., B, KB, MB, GB). They are neither metric prefixes nor binary prefixes but are meant to be binary prefixes. This plugin makes Roundcube use standardized prefixes by hooking into the byte formatting routine thanks to its powerful plugin API. By default, binary prefixes are used as quota is reported in units of 1 KiB.
Additionally, this plugin uses a fixed number of four significant figures providing constant and maximum accuracy while having compactly formatted strings. It is four figures as they enclose three different decimal mark positions, covering the three different decimal powers of a particular metric prefix (e.g, 9.999 MB, 99.99 MB, 999.9 MB), and together with a thousands separator, covering the four different decimal powers of a particular binary prefix (e.g., 1.023 MiB, 10.23 MiB, 102.3 MiB, and 1 023 MiB). All three/four formatted strings have eight/nine characters. For more details and examples, see the documentation of the original Rust crate.
The decimal mark and thousands separator are locale-aware as defined in
./localization/*.inc. The thousands separater can be configured to always
be a space, as internationally recommended, instead of a comma or a point.
Configuration
The configuration file ./config.inc.php is loaded if it exists. Its keys are
documented in config.inc.php.dist.
License
This plugin is licensed under Fair.
Copyright (c) 2023 Rouven Spreckels rs@qu1x.dev
Usage of the works is permitted provided that this instrument is retained with the works, so that any entity that uses the works is notified of this instrument.
DISCLAIMER: THE WORKS ARE WITHOUT WARRANTY.
qu1x-roundcube/signifix 适用场景与选型建议
qu1x-roundcube/signifix 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 3 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 11 月 05 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「number-formatter」 「fixed-significance」 「metric-prefix」 「binary-prefix」 「unit-prefix」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 qu1x-roundcube/signifix 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 qu1x-roundcube/signifix 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 3
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 25
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: Fair
- 更新时间: 2023-11-05