PHPackages                             nekopoi/libs - 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. nekopoi/libs

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

nekopoi/libs
============

常用的工具方法和类

v1.5(4y ago)01.8k↓100%mitPHP

Since Mar 9Pushed 4y ago1 watchersCompare

[ Source](https://github.com/LikeNeko/php_libs)[ Packagist](https://packagist.org/packages/nekopoi/libs)[ RSS](/packages/nekopoi-libs/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (7)Used By (0)

```
// 返回一个绝对大于等于0的数
var_dump(math_gtz(-1)); // Math::GTZ(-1);
// int(0)

// curl的请求封装助手方法
$info = c_get('https://baidu.com/',['info'=>'id\*@ $#!*&>.','num'=>3,'va'=>132.2222222],300);
$info = c_post('https://baidu.com/',['info'=>'id\*@ $#!*&>.','num'=>3,'va'=>132.2222222],300);

// 请求失败重试3次 300ms超时
$obj = new \Neko\Libs\CUrl(3);
$info = $obj->get('https://baidu.com/',['info'=>'id\*@ $#!*&>.','num'=>3,'va'=>132.2222222],300);
// string(75) "https://baidu.com/?info=id%5C%2A%40+%24%23%21%2A%26%3E.&num=3&va=132.2222222"

// 请求失败重试3次 300ms超时
$obj = new \Neko\Libs\CUrl(3);
$info = $obj->get('https://baidu.com/?api=aaaa',['info'=>'id\*@ $#!*&>.','num'=>3,'va'=>132.2222222],300);
// string(84) "https://baidu.com/?api=aaaa&info=id%5C%2A%40+%24%23%21%2A%26%3E.&num=3&va=132.2222222"

// 单例
class A{
    use \Neko\Libs\NSingleton;
    public function __construct($a,$b,$c)
    {
        var_dump($a,$b,$c);
    }
}
A::getInstance(1,2,3);
```

###  Health Score

27

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

Maturing project, gaining track record

 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 ~38 days

Recently: every ~47 days

Total

6

Last Release

1649d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/d0774add39082411460fa7540715a9979956d03460f27cfcc841b40131401894?d=identicon)[LikeNeko](/maintainers/LikeNeko)

---

Top Contributors

[![LikeNeko](https://avatars.githubusercontent.com/u/31497234?v=4)](https://github.com/LikeNeko "LikeNeko (8 commits)")

### Embed Badge

![Health badge](/badges/nekopoi-libs/health.svg)

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

###  Alternatives

[sylius/refund-plugin

Plugin provides basic refunds functionality for Sylius application.

691.6M13](/packages/sylius-refund-plugin)[seboettg/citeproc-php

Full-featured CSL processor (https://citationstyles.org)

761.2M16](/packages/seboettg-citeproc-php)[timeweb/phpstan-enum

Enum class reflection extension for PHPStan

443.2M19](/packages/timeweb-phpstan-enum)[php-unit-conversion/php-unit-conversion

A fully PSR-4 compatible PHP library for converting between standard units of measure.

681.1M1](/packages/php-unit-conversion-php-unit-conversion)[open-feature/sdk

PHP implementation of the OpenFeature SDK

39448.2k15](/packages/open-feature-sdk)

PHPackages © 2026

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