Last Updated | | Ratings | | Unique User Downloads | | Download Rankings |
2024-04-26 (5 months ago) | | Not enough user ratings | | Total: 63 | | All time: 10,429 This week: 30 |
|
Description | | Author |
This package provides general-purpose utility functions.
It provides a set of functions to manipulate strings and arrays.
Currently, it can:
- Encode text as HTML
- Validate E-Mail address
- Return the current date and time in the ISO format
- Return a UUID v4 string
- Return array elements given the element path in the dot notation format
- Encode an array in JSON format
- Decode a JSON string
- Encode a string or array of values in UTF-8 encoding
- Decode a string or array of elements that use ISO-8859-1 encoding
- Include a PHP script and return the values defined in the script | |
|
|
Innovation award
Nominee: 16x
Winner: 1x |
|
Instructions
Congratulations on your package.
We suggest you include simplified instructions on using your package to increase the number of interested users.
To do that, please click the Edit button on your package page and enter the instructions text in the Instructions field.
You can use the Markdown format to enter your instructions.
Then click the Update the class button to save the instructions. You can see the instructions on your package page.
Documentation
util
PHP functions
Installation
composer require odan/util
Functions
-
html - Convert all applicable characters to HTML entities.
-
is_email - Validate a E-Mail address
-
now - ISO date time (Y-m-d H:i:s)
-
uuid - Returns a `UUID` v4 created from a cryptographically secure random value
-
array_value - Return Array element value, with dot notation.
-
encode_utf8 - Encodes an ISO-8859-1 string or array to UTF-8.
-
encode_iso - Returns a ISO-8859-1 encoded string or array
-
read - Read a php file
|
Applications that use this package |
|
No pages of applications that use this class were specified.
If you know an application of this package, send a message to the author to add a link here.