Download the PHP package voyteck/extlibs without Composer
On this page you can find all versions of the php package voyteck/extlibs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download voyteck/extlibs
More information about voyteck/extlibs
Files in voyteck/extlibs
Package extlibs
Short Description Functions used by other packages prepared within Voyteck repository
License MIT
Homepage https://github.com/Voyteck/VExtLibs
Informations about the package extlibs
VExtLibs
Classes and functions that extends PHP/ZF3 functionalities
Installation
Simply use the composer:
Class Voyteck/ExtLibs
Class delivers static functions for various purposes
Function Voyteck/ExtLibs::byteOn(int $value, int ...$bytes)
Functions returns TRUE if within $value bytes mentioned in (varied number) $bytes are ON. For example number 5 can be split into bytes 1x1 + 0x2 + 1x4 - which means bytes 1 and 4 are ON. This way within single integer number it is possible to write number of ON/OFF options.
Usage examples
- Voyteck\ExtLibs::byteOn(5, 1) will return TRUE.
- Voyteck\ExtLibs::byteOn(5, 1, 4) will return TRUE.
- Voyteck\ExtLibs::byteOn(5, 2) will return FALSE.
Function Voyteck/ExtLibs::generateRandomString($length = 10)
Allows to create random string of various length
View Helper Voyteck/VExtLibs/configValueHelper
A simple helper that once invoked will retrieve (and print on screen) a configuration value Helper should be invoved with parameters: __invoke(array $configPath = [], $quoteStrings = true)
- $configPath - contains path from configuration that should be retrieved. If not provided - the whole configuration is shown. The path should be provided in the form of an array with elements that shows "deeper and deeper" levels of configratuin key to be retrieved
- $quoteStrings - boolean parameter specifying whether string paraneter values should be quoted
Usage
The helper needs to be added into 'view_helpers' configuration entry. Most common way of doing this would be adding an entry:
Then you can use the helper directly in the view files - e.g:
will print out on the page quoted route value for route 'test'.
All versions of extlibs with dependencies
zendframework/zend-view Version ~2.11