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

ActiveLibrary

a06220226/lx-helper
===================

helper functions

1.0(7y ago)020MITPHPPHP &gt;=5.6.0

Since Aug 22Pushed 5y ago1 watchersCompare

[ Source](https://github.com/a06220226/lx-helper)[ Packagist](https://packagist.org/packages/a06220226/lx-helper)[ RSS](/packages/a06220226-lx-helper/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

常用的公共方法
=======

[](#常用的公共方法)

> helper常用方法

- element()
- elements()

> Regulars各种验证方法类

```
//手机号验证
\a06220226\helper\Regulars::isMobile($mobile)
//身份证号验证
\a06220226\helper\Regulars::isIdCard($id_card)
//字符串是否全是中文
\a06220226\helper\Regulars::isAllChinese($str)
//字符串是否包含中文
\a06220226\helper\Regulars::hasChinese($str)
//邮箱验证
\a06220226\helper\Regulars::isEmail($email)
//url验证
\a06220226\helper\Regulars::isUrl($url)
//IP验证
\a06220226\helper\Regulars::isIp($url)

```

> Time时间处理类

```
//某天开始和结束时间
\a06220226\helper\Time::getDay($which,$is_time)
//某周开始和结束时间,周一到周末
\a06220226\helper\Time::getWeek($which,$is_time)
//某月开始和结束时间
\a06220226\helper\Time::getMonth($which,$is_time)

```

> DownFile文件下载类

```
//下载csv文件到本地服务器
\a06220226\helper\DownFile::downCsvToLocal($filename,$data,$title)
//下载csv文件到浏览器
\a06220226\helper\DownFile::downCsvToBrowser($filename,$data,$title)
//文件打包下载
\a06220226\helper\DownFile::downZip($zip_name,$files)
//下载本地文件
\a06220226\helper\DownFile::download($filename)

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

2819d ago

### Community

Maintainers

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

### Embed Badge

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

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

PHPackages © 2026

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