PHPackages                             dxcswl/ft - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. dxcswl/ft

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

dxcswl/ft
=========

我们需要一个核心驱动的类哦

1.0.5(8y ago)132PHPPHP &gt;=5.4.0

Since Oct 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dxcswl/ft)[ Packagist](https://packagist.org/packages/dxcswl/ft)[ RSS](/packages/dxcswl-ft/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

The Fture base code Package
===========================

[](#the-fture-base-code-package)

地址
--

[](#地址)

注意
--

[](#注意)

我们需要一个核心驱动的类哦

目前处于测试和调试阶段 我们需要一个来支持他们正常

安装
--

[](#安装)

> composer require dxcswl/ft

使用
--

[](#使用)

```
  1.缓存入口 SetCache GetCache
    0  名称为表的名称 系统缓存
    1  名称为方法名 common/Event/Cache.php 中的方法  自定义的缓存
    2  名称为方法名 common/Event/Inlay.php 中的方法  内部保留扩展缓存

    示例： 缓存 表 (前缀)user表，整个表缓存，key为自增字段

    \ft\Cache::setCache('user');

    GetCache 同上  主要获取缓存的数据

    建议使用
        \ft\Cache::setetCache('demo',1);
        增加 common/Event/Cache.php demo的方法

  2.核心方法
    1.hxListToTree($list = [], $pk = 'id', $pid = 'pid', $child = '_child', $root = 0)
        遍历数组形成层级数组
        list 原始数据
        pk 关系id
        pid 对应id
        child 下级数组对应关系名称
        root 遍历开始id 对应 $pid
    2.hxStrRandom($sing = 1, $type = 0)
        生成随机字符串
        sing 生成字符串长度 默认1个长度
        type 生成字符串类型 1.数字 2.大写字母 3.小写字母 默认.数字+大写字母+小写字母

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Total

4

Last Release

2921d ago

### Community

Maintainers

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

---

Top Contributors

[![dxcswl](https://avatars.githubusercontent.com/u/2804461?v=4)](https://github.com/dxcswl "dxcswl (29 commits)")

### Embed Badge

![Health badge](/badges/dxcswl-ft/health.svg)

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

PHPackages © 2026

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