Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>PHP Data ConverterNew to Visual Studio Code? Get it now.
PHP Data Converter

PHP Data Converter

Sofyan Sitorus

|
1 install
| (0) | Free
Convert between PHP Serialized, PHP array literal, and JSON — right from your editor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHP Data Converter

Convert between PHP Serialized, PHP array literal (short array syntax), and JSON from your editor.

Demo

PHP Data Converter Demo

Commands

  • Convert: PHP Serialized → JSON
  • Convert: PHP Serialized → PHP Array
  • Convert: JSON → PHP Array
  • Convert: JSON → PHP Serialized
  • Convert: PHP Array → JSON
  • Convert: PHP Array → PHP Serialized

Use the Command Palette and paste your data, or select a range in the editor and run the command to replace in-place.

Notes

  • PHP array parsing uses php-parser. It expects a PHP array literal like:
[
  'name' => 'Alice',
  'roles' => ['admin', 'editor'],
  'active' => true,
  'age' => 30,
  'meta' => ['a' => 1, 'b' => null]
]
  • PHP serialization uses php-serialize.
  • JSON conversion uses the built-in JSON parser/stringifier.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft