PHPackages                             myxland/think-extend - 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. myxland/think-extend

ActiveLibrary

myxland/think-extend
====================

some helper libaray function

112PHP

Since Mar 14Pushed 8y ago1 watchersCompare

[ Source](https://github.com/myxland/think-extend)[ Packagist](https://packagist.org/packages/myxland/think-extend)[ RSS](/packages/myxland-think-extend/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

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

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

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

安装
--

[](#安装)

```
composer require myxland/think-extend:dev-master

```

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

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

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

---

Top Contributors

[![myxland](https://avatars.githubusercontent.com/u/11535019?v=4)](https://github.com/myxland "myxland (1 commits)")

### Embed Badge

![Health badge](/badges/myxland-think-extend/health.svg)

```
[![Health](https://phpackages.com/badges/myxland-think-extend/health.svg)](https://phpackages.com/packages/myxland-think-extend)
```

PHPackages © 2026

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