vinnyfs89 / r-enc
Simple way to get the right encoding that you want in PHP codes.
Requires
- php: >=5.3
Requires (Dev)
This package is auto-updated.
Last update: 2025-03-21 21:40:27 UTC
README
##About
The RightEncoding component provides a simple and effective way of convert your PHP strings to right encoding.
The "r-enc" function represents the RightEncoding component. Using the function "r-enc" you can set the input string and this function will return the string converted for you. You also may set the input Charset and output charset when call the "r-enc" function.
##Install
you may clone this project directly or set in your composer.json, like this:
"require-dev": { "vinnyfs89/r-enc": "dev-master" },
##Usage
Use the "r-enc" function is so easy! Just like this:
$newString = rEnc($oldString)
Example:
Below we have an example of the file "example.php" executed.
Yeah!
I Hope you enjoy! :D