yocto/yoclib-propertylist 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

yocto/yoclib-propertylist

最新稳定版本:v1.0.0

Composer 安装命令:

composer require yocto/yoclib-propertylist

包简介

This yocLibrary enables your project to encode and decode Property List files in PHP.

README 文档

README

This yocLibrary enables your project to encode and decode Property List files in PHP.

Status

CI

Installation

composer require yocto/yoclib-propertylist

Use

Serialization

use YOCLIB\PropertyList\PropertyList;

$object = ['string_data',true,false];

$plist = new PropertyList;
$plist->setObject($object);

$xml = $plist->serialize(PropertyList::FORMAT_XML);

Deserialization

use YOCLIB\PropertyList\PropertyList;

$xml = '<plist xlmns="https://www.apple.com/DTDs/PropertyList-1.0.dtd" version="1.0"><array><string>string_data</string><true/><false/></array></plist>';

$plist = new PropertyList;
$plist->deserialize(PropertyList::FORMAT_XML,$xml);

$object = $plist->getObject();

Supported Formats

A Property List comes in one of the following formats:

Format Supported in this library Description
ASCII ⚠️ (No comments yet) (The original, legacy format developed by NeXT for NeXTStep and later OPENSTEP)
GNUstep ASCII ⚠️ (No comments yet) The NeXTStep/OPENSTEP ASCII format, but extended by GNU for GNUstep
GNUstep Binary A binary variant of the property list developed by GNU for GNUstep
XML Introduced in Apple's Mac OS X 10.0; currently version 1.0
Binary Introduced in Apple's MAC OS X 10.2; currently version 1.0
JSON Introduced in Apple's MAC OS X 10.7

Note: At the moment, the implementation of the ASCII formats in this library should not be trusted. It doesn't understand comments, and it has some white-space detection hardcoded, so it is possible that it fails on a valid ASCII Property List.

统计信息

  • 总下载量: 67
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-05-27