PHPackages                             zishu/myextend - 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. zishu/myextend

ActiveLibrary

zishu/myextend
==============

我的扩展http curl封装

v1.0.9181(1y ago)116MITPHPPHP ^8.0

Since May 18Pushed 1y ago1 watchersCompare

[ Source](https://github.com/2018240448/myhttp)[ Packagist](https://packagist.org/packages/zishu/myextend)[ RSS](/packages/zishu-myextend/feed)WikiDiscussions main Synced 1mo ago

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

MyPHPExtend （个人PHP扩展）
---------------------

[](#myphpextend-个人php扩展)

\####个人PHP扩展
\#####① http curl请求封装,类名称 MyHttp;
\#####② 请求参数加密解密封装,类名称 MyParams;
\#####③ redis常用函数封装,redis;
\#####④ 日志记录类;

`php:>=8.0`

`composer require zishu/myextend`

使用
--

[](#使用)

\###1. MyHttp类使用(http请求类)

```
//get实例引用
\Zishu\Myextend\main\MyHttp::get('url',[]);

//post实例引用
\Zishu\Myextend\main\MyHttp::post('url',[]);

```

\###2. MyLog类使用(日志记录类)

```
//PHP 项目 操作日志记录
$log = new \Zishu\Myextend\main\MyLog('admin'); //实例化 , 参数为类型.admin即项目应用模块的类型

//日志记录
$userId = 1;
$log->log($userId);

//获取日志
$time = time(); //可以选中的时间
$log->get_log($time);

//删除日志
$time = time(); //可以选中的时间
$log->del_log($time);

```

\###3. MyParams类使用(参数加密解密类)

```
//加密
$params=[];//需要加密的参数数组
$key = '';//动态密钥 或者 固定配置的常量
$params = new \Zishu\Myextend\main\MyParams();
$params->reqEncode($params,$key); //解密

```

```
//解密
$params=[
  'key'=>'',//客户端请求返回，或者 固定配置的常量
  'data'=>'',//客户端请求的加密参数
];//参数
$params = new \Zishu\Myextend\main\MyParams();
$params->reqDecode($params); //解密

```

\###4. redis类（分为PHP原生项目PhpRedis类和 ThinkPHP项目的TpRedis类）

```
//ThinkPHP 项目
$redis = new \Zishu\Myextend\main\redis\TpRedis(); //实例化

//加入缓存
$data = 'hello redis';
$redis->set('redis_name',$data);

// 获取缓存
$data = $redis->get('redis_name');

```

```
//ThinkPHP 项目
$redis = new \Zishu\Myextend\main\redis\TpRedis(); //实例化

//加入缓存
$data = 'hello redis';
$redis->set('redis_name',$data);

// 获取缓存
$data = $redis->get('redis_name');

```

\###5. 继续增加中...

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Recently: every ~30 days

Total

7

Last Release

605d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/870b7b3c7ad17edb433dbdb7f611aa4bb8985b6bb9ea3ff19df19dd84321653c?d=identicon)[2018240448](/maintainers/2018240448)

---

Top Contributors

[![2018240448](https://avatars.githubusercontent.com/u/40648253?v=4)](https://github.com/2018240448 "2018240448 (50 commits)")

### Embed Badge

![Health badge](/badges/zishu-myextend/health.svg)

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

PHPackages © 2026

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