PHPackages                             lzhy/yw7 - 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. lzhy/yw7

ActiveLibrary

lzhy/yw7
========

微擎模块快速开发

0.0.8(5y ago)026MITPHP

Since Sep 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/sjywz/yw7)[ Packagist](https://packagist.org/packages/lzhy/yw7)[ RSS](/packages/lzhy-yw7/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (7)Used By (0)

 yw7
=====

[](#-yw7-)

 微擎模块开发脚手架

[![Build Status](https://camo.githubusercontent.com/73fd011370273663f78eb27369baa9cdc2f97cbfca8c94c4c87ac3681e61ad5a/68747470733a2f2f7472617669732d63692e6f72672f736a79777a2f7977372e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/sjywz/yw7)

安装
--

[](#安装)

```
$ composer require lzhy/yw7 -vvv
```

修改`site.php`：

```
//site.php
use Lzhy\Yw7\Boot;

defined('IN_IA') or exit('Access Denied');
require __DIR__ . '/vendor/autoload.php';

class Daba3_sassModuleSite extends WeModuleSite
{
    function __call($name,$arguments)
    {
        $boot = new Boot($name,$arguments);
        $boot->start();
    }
}
```

### 工具

[](#工具)

##### Lzhy\\Yw7\\Tool\\Assist;

[](#lzhyyw7toolassist)

```
Assist::globalVal('key','default-value');//获取或设置全局变量$_W

Assist::gpcVal('key','default-valut');//获取全局$_GPC

//默认会过滤掉微擎添加变量('c','a','eid','version_id','m','do','i','menu_fold_tag:platform','state','op','message','jsMenuScroll','menu_fold_tag:platform_module_menu')和下划线开头的变量，如需过滤更多可以传入第二个参数
Assist::filterParam(['test'=>1,'_test'=>2],['_test']);//['test'=>1] 过滤参数
```

##### Lzhy\\Yw7\\Tool\\Url;

[](#lzhyyw7toolurl)

```
Assist::gWebUrl('index/index');//生成后台管理链接

Assist::gMobileUrl('index/index'); //生成web端访问链接
```

##### Lzhy\\Yw7\\Tool\\Wechat;

[](#lzhyyw7toolwechat)

```
Wechat::auth2('userinfo');//微信授权

Wechat::getAccessToken();//公众号accesstoken

Wechat::componentAccessToken();//开放平台accesstoken
```

License
-------

[](#license)

MIT

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

6

Last Release

1981d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3790ba26295b4bc7e326db2f51e888303b5f75e274057440fbf8a9385f3d748c?d=identicon)[sjywz](/maintainers/sjywz)

---

Top Contributors

[![sjywz](https://avatars.githubusercontent.com/u/9930375?v=4)](https://github.com/sjywz "sjywz (15 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lzhy-yw7/health.svg)

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

PHPackages © 2026

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