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.
Code Generation & Serialization:
Developer Tooling & DX:
Build vs. Buy:
Roadmap Alignment:
var_export or custom serialization hacks become unreliable. The tested compatibility removes a major adoption barrier.Adopt if:
var_export or serialize() and need customizable, readable output without performance overhead, with guaranteed PHP 8.2 stability.Look elsewhere if:
serialize() or igbinary).spatie/array-to-xml or symfony/yaml are better).json_encode or msgpack).collect() serialization) that meet your needs without PHP 8.2 risks.For Executives: "This update explicitly tests PHP 8.2 compatibility, making it the safest choice for modernizing our code generation tools. It’ll future-proof initiatives like test automation, config management, and legacy system upgrades—while letting non-engineers export structured data without errors. A low-risk, high-reward upgrade: MIT-licensed, lightweight, and now verified for PHP 8.2."
For Engineers: *"PHP 8.2 is now officially tested for this package, and index order consistency is guaranteed—no more surprises. Use it for:
array_key_exists hacks).composer.json—it’s battle-tested and PHP 8.2-ready."*For Developers:
*"Tired of var_export breaking in PHP 8.2? This update tests index order consistency and PHP 8.2 compatibility explicitly. Perfect for:
composer require kit/phppencoder—no more serialization headaches."*How can I help you explore Laravel packages today?