riimu/kit-phpencoder
Export PHP variables as customizable, readable or compact PHP code. A flexible alternative to var_export() with control over whitespace, array syntax, and useful object conversion—ideal for generated config files and optimized cache output.
export type object conversion have more consistent index orderstring.classes option, which allows to define an array of classes or
namespaces to encode using the ::class format, when encountered as strings
string.imports options, which allows to define the used imports to write
the ::class format strings using shorter imported notationstring.utf8 option which causes the string encoder to escape all
valid multibyte UTF-8 characters using the PHP7 unicode code point syntax.
string.binary option which causes the string encoder to encode all
non UTF-8 strings using a base64_encode().integer.type option that accepts values binary, octal, decimal
or hexadecimal which can be used to change the output syntax of integers.hex.capitalize option that causes all hexadecimal character in
output to appear in upper casefloat.export option that forces float encoder to use var_export
for encoding floating point numbersnull default value will now be recognized(int) cast in front of integers, if
their value equals PHP_INT_MAX * -1 - 1.float.integers is set to true, the float encoder will now only encode
floats as integers if the value is accurately represented by the float. Set
the value to "all" to restore the previous behavior.serialize_precision when the option precision
is set to falsearray.align will now respect array.omit and array.inline settings if
all the keys in the array can be omitted.How can I help you explore Laravel packages today?