2017 © Pedro Peláez
 

library toolkit

A toolkit service for rayful PHP packages.

image

rayful/toolkit

A toolkit service for rayful PHP packages.

  • Monday, August 7, 2017
  • by kingmaxyang
  • Repository
  • 1 Watchers
  • 1 Stars
  • 321 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 15 % Grown

The README.md

toolkit

睿锋公司开源网络框架及软件包内常用的工具包。, (*1)

安装

composer require rayful/toolkit, (*2)

使用

trait
  • validate: 验证及自动转换类型
  • editor: 根据PHPdoc里面定义的类型自动生成数据编辑器
  • shower: 根据PHPdoc里面定义的类型自动生成数据展示器
  • objectTool: 包含遍历对象及获得当前对象公开属性的等四个基础方法,多个包里面会用到。
  • Date: 常用的MongoDate类型的展示类,包含::toString等几个常用方法
  • StringTool: 常用的字符串操作类,包括toMongoId等数个字符串方法
关于在Model里面对每个属性的声明
@var:
 * Model类在PHPDoc里面对这个属性的类型的声明
 * 使用场景:editor,shower,validate中的autoConvert()
 * @var string
 * @example string int bool float array string[] MongoDate MongoId ...

@name:
 * Model类在PHPDoc里面对这个属性的标签的声明
 * 使用场景:editor,shower时必选
 * @var string
 * @example 姓名/性别/标题

@input:
 * editor中使用,声明这个属性的输入框类型
 * 使用场景:editor 可选 如果不声明类型,程序还将能自动根据声明的var类型判断
 * @var string
 * @example select/checkbox/radio/textarea

@ignore:
 * editor中使用,声明这个属性是否在某些编辑场景中被忽略
 * 使用场景:editor 可选 默认每个字段都会输出到编辑器中,除非声明ignore
 * @var string
 * @example edit/show

@tips:
 * editor中使用,声明这个属性在输入框后面的提示
 * 使用场景:editor 可选 如果需要在输入框后面增加提示,请声明这个类型
 * @var string

The Versions

07/08 2017

dev-master

9999999-dev

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

07/08 2017

1.3.3

1.3.3.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

28/07 2017

1.3.2

1.3.2.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

28/07 2017

1.3.1

1.3.1.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

27/07 2017

1.3

1.3.0.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

21/07 2016

1.2.3.1

1.2.3.1

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

13/07 2016

1.2.3

1.2.3.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

13/07 2016

1.2.2

1.2.2.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

13/07 2016

1.2.1

1.2.1.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

13/07 2016

1.2

1.2.0.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

26/04 2016

1.1

1.1.0.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

26/04 2016

1.0.0

1.0.0.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax

26/04 2016

1.0.1

1.0.1.0

A toolkit service for rayful PHP packages.

  Sources   Download

MIT

by kingmax