5.0.1 • Published 12 months ago
php-serialize-client v5.0.1
PHP Serializer CLI Tool
A CLI tool for php-serialize.
Installation
npm install -g php-serializeUsage
php-serialize [options] [command]Options
-V, --versionOutput the version number-h, --helpDisplay help for command
Commands
serialize [input]Serialize a JavaScript object into PHP formatunserialize [input]Unserialize a PHP serialized string into a JavaScript objecthelp [command]Display help for command
Examples
Serialize a JavaScript object
php-serialize serialize '{"key": "value"}'Unserialize a PHP serialized string
php-serialize unserialize 'a:1:{s:3:"key";s:5:"value";}'Using stdin
You can also use stdin for input:
echo '{"key": "value"}' | php-serialize serializeecho 'a:1:{s:3:"key";s:5:"value";}' | php-serialize unserializeLicense
This project is licensed under the MIT License.
5.0.1
12 months ago