PHPackages                             kingsoft/utils - 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. kingsoft/utils

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

kingsoft/utils
==============

General and easy to use utility functions for PHP. Used in many other Kingsoft packages.

2.7.6(1y ago)0305[1 issues](https://github.com/theking2/kingsoft-utils/issues)2mitPHP

Since Mar 31Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/theking2/kingsoft-utils)[ Packagist](https://packagist.org/packages/kingsoft/utils)[ RSS](/packages/kingsoft-utils/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (9)Dependencies (1)Versions (25)Used By (2)

utils
=====

[](#utils)

Currently two classes:

- Format for formatting
- Html for some handy web page functions like wrap\_tag and check\_request\_params

bootstrap
---------

[](#bootstrap)

Define the `SETTINGS` constant with

```
require __DIR__ . '/vendor/kingsoft/utils/settings.inc.php';
```

Prior Set `SETTINGS_FILE` to something else than settings.ini if you want.

After this the `SETTINGS` constant is available with an array of arrays containing the content of the settings file.

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance48

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.2% 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 ~26 days

Recently: every ~37 days

Total

23

Last Release

594d ago

Major Versions

1.2 → 2.02023-07-05

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16472624?v=4)[kingsoft](/maintainers/kingsoft)[@kingsoft](https://github.com/kingsoft)

---

Top Contributors

[![theking2](https://avatars.githubusercontent.com/u/1612152?v=4)](https://github.com/theking2 "theking2 (32 commits)")[![kingma-sbw](https://avatars.githubusercontent.com/u/50140049?v=4)](https://github.com/kingma-sbw "kingma-sbw (6 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/kingsoft-utils/health.svg)

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

PHPackages © 2026

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