NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #1842 most downloaded on Packagist
Highly customizable alternative to var_export for PHP code generation
Latest stable
v2.4.2
Last release 4 years ago
no release in 18 months
Release timing varies
gaps range from 1 weeks to 2.4 years
Most releases are documented
notes for 14 of 19 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
19 releases · first in 2013
Drag across the ruler to compare, or tap a release to open it.
Added tests to ensure PHP 8.2 compatibility
export type object conversion have more consistent index orderMigrated to Github actions for CI
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Added string.classes option, which allows to define an array of classes or namespaces to encode using the ::class format, when encountered as strings
string.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 notationAdded string.utf8 option which causes the string encoder to escape all valid multibyte UTF-8 characters using the PHP7 unicode code point syntax.
string.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 numbersIncrease the minimum PHP version requirement to 5.6
Ensure the tests run on both HHVM and PHP7
The GMP encoder no longer tries to encode classes that extend the GMP class
Fixed object encoder not throwing an exception on some incorrect object.format values.
Encoder options with null default value will now be recognized
null 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.
array.align will now respect array.omit and array.inline settings if
all the keys in the array can be omitted.Improvements on code quality, documentation and tests
Encoding is now separated into external encoding classes
Added new object conversion flags OBJECT_VARS and OBJECT_SET_STATE.
GMP Integer resources are now encoded using 'gmp_init()'
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.