anklimsk/cakephp-basic-functions
Composer 安装命令:
composer require anklimsk/cakephp-basic-functions
包简介
Global basic utilities for the CakePHP 2.x application
README 文档
README
Global basic utilities for the CakePHP application
This plugin provides next features:
- Getting array of constants value with name
constsToWords(); - Getting array of constants values by prefix
constsVals(); - Getting name of constant by prefix and value
constValToLcSingle(); - Translate array values by Domain name
translArray(); - Getting a string with the first character of string capitalized
mb_ucfirst(); - Checking whether the string is GUID
isGuid(); - Getting readable GUID from binary string LDAP
GuidToString(); - Getting GUID for LDAP query from readable GUID string
GuidStringToLdap(); - Analog of PHP function
str_pad()for using unicodemb_str_pad(); - Getting unicode char by its code
unichr(); - Checking whether the array is zero-indexed and sequential
isAssoc(); - Checking string is binary
isBinary(); - Getting information about the current language of the UI and converting it.
Installation
-
Install the Plugin using composer:
composer require anklimsk/cakephp-basic-functions -
Add the next line to the end of the file
app/Config/bootstrap.php:CakePlugin::load('CakeBasicFunctions', ['bootstrap' => true]);
Using
统计信息
- 总下载量: 1.66k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 5
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-08-04