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. [HTTP &amp; Networking](/categories/http)
4. /
5. zishu/myextend

ActiveLibrary[HTTP &amp; Networking](/categories/http)

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 2d 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 47% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

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

653d ago

### Community

Maintainers

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

---

Top Contributors

[![2018240448](https://avatars.githubusercontent.com/u/40648253?v=4)](https://github.com/2018240448 "2018240448 (4 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)
```

###  Alternatives

[php-http/cache-plugin

PSR-6 Cache plugin for HTTPlug

25126.1M82](/packages/php-http-cache-plugin)[illuminate/http

The Illuminate Http package.

11937.9M6.9k](/packages/illuminate-http)[rdkafka/rdkafka

A PHP extension for Kafka

2.2k24.3k1](/packages/rdkafka-rdkafka)[httpsoft/http-message

Strict and fast implementation of PSR-7 and PSR-17

87965.9k114](/packages/httpsoft-http-message)[mezzio/mezzio-router

Router subcomponent for Mezzio

265.4M92](/packages/mezzio-mezzio-router)[serpapi/google-search-results-php

Get Google, Bing, Baidu, Ebay, Yahoo, Yandex, Home depot, Naver, Apple, Duckduckgo, Youtube search results via SerpApi.com

69127.2k](/packages/serpapi-google-search-results-php)

PHPackages © 2026

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