2017 © Pedro Peláez
 

library ft

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

image

dxcswl/ft

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

  • Wednesday, May 16, 2018
  • by dxcswl
  • Repository
  • 1 Watchers
  • 2 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 7 % Grown

The README.md

The Fture base code Package

地址

https://github.com/dxcswl/ft, (*1)

注意

我们需要一个核心驱动的类哦, (*2)

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

安装

composer require dxcswl/ft, (*4)

使用

  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.小写字母 默认.数字+大写字母+小写字母

The Versions

16/05 2018

dev-master

9999999-dev

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

  Sources   Download

The Requires

  • php >=5.4.0

 

by Avatar dxcswl

16/05 2018

1.0.5

1.0.5.0

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

  Sources   Download

The Requires

  • php >=5.4.0

 

by Avatar dxcswl

21/12 2017

1.0.4

1.0.4.0

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

  Sources   Download

The Requires

  • php >=5.4.0

 

by Avatar dxcswl

10/11 2017

1.0.2

1.0.2.0

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

  Sources   Download

The Requires

  • php >=5.4.0

 

by Avatar dxcswl

26/10 2017

1.0.1

1.0.1.0

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

  Sources   Download

The Requires

  • php >=5.4.0

 

by Avatar dxcswl