Download the PHP package swiftmade/simple-serialize without Composer
On this page you can find all versions of the php package swiftmade/simple-serialize. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download swiftmade/simple-serialize
More information about swiftmade/simple-serialize
Files in swiftmade/simple-serialize
Download swiftmade/simple-serialize
More information about swiftmade/simple-serialize
Files in swiftmade/simple-serialize
Vendor swiftmade
Package simple-serialize
Short Description Basic key:value; style serialization with string support only.
License MIT
Package simple-serialize
Short Description Basic key:value; style serialization with string support only.
License MIT
Please rate this library. Is it a good library?
Informations about the package simple-serialize
{ Simple Serialization
This is a PHP package that serves a very simple purpose: Serialize associative string arrays.
Why?
We are using this package to turn some data into SMS messages and then convert SMS messages back to PHP arrays.
You can use it for any purpose you like, when json_encode
or serialize
is overkill.
Features
- Simple API:
simple_serialize($array)
andsimple_unserialize($string)
- Your keys or values can contain quotes, whitespaces, etc. No escaping needed.
- The only limitation is, your keys cannot contain colon (:) and your values cannot contain semi-colon (;)
- Tolerates syntax errors! It will still extract the valid bits of data.
Usage
Installation:
composer require swiftmade/simple-serialization
Serialize:
$array = ['your_key' => 'whatever information'];
$string = simple_serialize($array); // "your_key:whatever information"
Unserialize:
$string = "your_key:whatever information";
$array = simple_unserialize($string); // ['your_key' => 'whatever information'];
All versions of simple-serialize with dependencies
PHP Build Version
Package Version
Requires
php Version
>=5.4
The package swiftmade/simple-serialize contains the following files
Loading the files please wait ....