The PHP implementation of Apple's PropertyList can handle XML PropertyLists as well as binary PropertyLists. It offers functionality to easily convert data between worlds, e.g. recalculating timestamps from unix epoch to apple epoch and vice versa. A feature to automagically create (guess) the plist structure from a normal PHP data structure will help you dump your data to plist in no time.
Note: CFPropertylist was originally hosted on GitHub
- requires PHP5 (tested with PHP5.2.9 and 5.3.0 on Mac, PHP5.2.1 on Windows)
- requires either MBString or Iconv
- requires either BC or GMP or phpseclib (see BigIntegerBug for an explanation) - as of CFPropertyList 1.0.1
CFPropertyList is published under the MIT License.
curl -s http://getcomposer.org/installer | php
Add to composer.json to "require": { ..... "luzzardi/CFPropertyList":"dev-master" },
"repositories":[
{
"type":"git",
"url":"https://github.com/luzzardi/CFPropertyList"
}
]