PHPackages                             agang235/helper - 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. agang235/helper

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

agang235/helper
===============

some helper libaray function

1.0.6.2(9y ago)025MITPHPPHP &gt;=5.6.0

Since Jan 5Pushed 8y agoCompare

[ Source](https://github.com/agang235/helper)[ Packagist](https://packagist.org/packages/agang235/helper)[ RSS](/packages/agang235-helper/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)DependenciesVersions (8)Used By (0)

我自己常用的一些扩展类库
============

[](#我自己常用的一些扩展类库)

> 更新完善中 以下类库都在`\\anerg\\helper`命名空间下

Http
----

[](#http)

> CURL相关操作

```
// 发起请求,get/post
Http::request($url, $data = null, $method = 'get', $params = null)

// get方式请求
Http::get($url, $data = null, $params = null)

// post方式请求
Http::post($url, $data = null, $params = null)

// post方式发送原始数据
Http::postRaw($url, $raw, $params = null)

// 带ssl证书请求原始数据
// $params数组必须包含cert_path,key_path,ca_path三个证书地址
Http::postRawSsl($url, $raw, $params)

//下载图片到指定位置
Http::saveImage($url, $path, $filename = null, $params = null)

```

Xml
---

[](#xml)

> XML与Array相关操作

```
// xml转为数组
Xml::xmlToArr($xml)

// 数组转为xml
Xml::arrToXml($array)

```

Encrypt
-------

[](#encrypt)

> 可逆加解密类,默认仅支持TP5,如果要支持其他,请修改getKey方法

```
// 加密字符串/数组
Encrypt::encrypt($data, $expire = 0, $key = '')

// 解密字符串
Encrypt::decrypt($data, $key = '')

```

Time
----

[](#time)

> 时间相关操作

```
// 输出优化后的时间显示格式
Time::optimization($time)

```

###  Health Score

27

—

LowBetter than 46% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 83.3% 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 ~35 days

Recently: every ~45 days

Total

7

Last Release

3295d ago

### Community

Maintainers

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

---

Top Contributors

[![anerg2046](https://avatars.githubusercontent.com/u/3120629?v=4)](https://github.com/anerg2046 "anerg2046 (10 commits)")[![agang235](https://avatars.githubusercontent.com/u/25738075?v=4)](https://github.com/agang235 "agang235 (2 commits)")

### Embed Badge

![Health badge](/badges/agang235-helper/health.svg)

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

PHPackages © 2026

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