Download the PHP package neoan3-apps/ops without Composer
On this page you can find all versions of the php package neoan3-apps/ops. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download neoan3-apps/ops
More information about neoan3-apps/ops
Files in neoan3-apps/ops
Package ops
Short Description neoan3 common string operations helper class
License MIT
Rated 5.00 based on 1 reviews
Informations about the package ops
neoan3-ops
Ops provides valuable string helpers for everyday use ranging from simple templating to encryption & hash generation.
This library facilitates
- templating
- string-manipulation
Templating
Templating has grown into a dedicated repository and is now available at neoan3-apps/template. For the time being, Ops will inherit functions as if it where part of Ops. However, in new projects we recommend using "Template" instead of "Ops" to trigger templating functionality.
String manipulation
serialize($any)
Serializes strings, arrays and objects (url save).
unserialize($serializedString)
Reverts serialize()
pin($length)
Returns a random integer in the requested length.
flattenArray($array)
Converts deep arrays to keyed arrays of one level to resemble JS-object selection.
randomString($length = 10)
Returns a random string (with or without special characters) in the requested length.
encrypt($string, $key)
Encrypts a string with a symmetric AES-256 algorithm.
decrypt($encrypted, $key)
Decrypts a string with a symmetric AES-256 algorithm.
extrude($targets,$array)
Returns selected part of $array.
toPascalCase($string)
Converts spaces, snake-, kebab- or camelCase to PascalCase
toCamelCase($string)
Converts spaces, snake-, kebab- or PascalCase to camelCase
toSnakeCase($string)
Converts spaces, camel-, kebab- or PascalCase to snake_case
toKebabCase($string)
Converts spaces, camel-, snake- or PascalCase to kebab-case
All versions of ops with dependencies
ext-mbstring Version *
ext-json Version *
ext-dom Version *
neoan3-apps/template Version ^1