PHPackages                             ibibicloud/tools - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. ibibicloud/tools

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

ibibicloud/tools
================

0.0.3(2mo ago)02Apache-2.0PHPPHP &gt;=7.2.0

Since Jul 3Pushed 2mo agoCompare

[ Source](https://github.com/ibibicloud/tools)[ Packagist](https://packagist.org/packages/ibibicloud/tools)[ RSS](/packages/ibibicloud-tools/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)Dependencies (2)Versions (4)Used By (0)

ibibicloud tools 常用工具类
----------------------

[](#ibibicloud-tools-常用工具类)

### 安装

[](#安装)

```
composer require ibibicloud/tools

```

### HttpClient

[](#httpclient)

HTTP客户端类，用于发送各种HTTP请求

封装了cURL功能，支持GET、POST、PUT、DELETE等请求方法

```
use ibibicloud\facade\HttpClient;

HttpClient::get($url, $queryParams = [], $headers = [], $includeResponseHeaders = false, $followLocation = false, $maxRedirs = 5);

```

```
HttpClient::post($url, $data = null, $headers = [], $includeResponseHeaders = false, $followLocation = false, $maxRedirs = 5);

```

### FormatUnit

[](#formatunit)

各种单位格式化

```
use ibibicloud\facade\FormatUnit;

// 数字 123456789 转换为 1亿2345.67万
// 数字 12345678 转换为 1234.56万
FormatUnit::number2CN($number, $decimals = 2);

```

```
// 文件大小转换为 1.2KB 1.2MB 1.2GB 1.2TB
FormatUnit::fileSize($bytes, $decimals = 2);

```

```
// 时长转换为 12秒 12:34 12：34：56
FormatUnit::duration($duration, $isMsSecond = true);

```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance88

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity23

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~129 days

Total

3

Last Release

61d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/207aa3cd185919cd44f64ff5b58c4472825cef4a71adcbf446787765353ef4fa?d=identicon)[ibibicloud](/maintainers/ibibicloud)

---

Top Contributors

[![ibibicloud](https://avatars.githubusercontent.com/u/139783422?v=4)](https://github.com/ibibicloud "ibibicloud (3 commits)")

### Embed Badge

![Health badge](/badges/ibibicloud-tools/health.svg)

```
[![Health](https://phpackages.com/badges/ibibicloud-tools/health.svg)](https://phpackages.com/packages/ibibicloud-tools)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
