Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aurimasniekis/ascii-plist-decoder

Decoding to php-array tool of (Old-style, NextStep) Ascii Plist
https://github.com/aurimasniekis/ascii-plist-decoder

Last synced: about 2 months ago
JSON representation

Decoding to php-array tool of (Old-style, NextStep) Ascii Plist

Awesome Lists containing this project

README

        

# AsciiPlist\Decoder

Decoding to php-array tool of (Old-style, NextStep) Ascii Plist

## Example

$s = '
{
"key-1" = "value 1";
"key-2" = "value 2";
"ary" = (
"1", "2", "13"
);
"pysch" = "\'lol\"bugoga\\\\";
}
';

$out = \AsciiPlist\Decoder::decode($s);

echo $s.PHP_EOL;
echo var_export($out, true).PHP_EOL;

See test.php for full example.

## License

[WTFPL](http://sam.zoy.org/wtfpl/).