anklimsk / cakephp-basic-functions
Global basic utilities for the CakePHP 2.x application
Installs: 1 639
Dependents: 5
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:cakephp-plugin
Requires
- php: >=5.4
- anklimsk/cakephp-extended-test: ^1.0.0
- composer/installers: ^1.5.0
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]);