akturan/plistparser 问题修复 & 功能扩展

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

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

akturan/plistparser

最新稳定版本:v1.1

Composer 安装命令:

composer require akturan/plistparser

包简介

A PHP Class for Reading and Parsing XML Plist files

README 文档

README

A PHP Class for Reading and Parsing XML Plist files

Install

Install using Composer.

composer require akturan/plistparser

Quick usage

require_once 'PlistParser.php';

Plist to Array

$result = $plistParser->plistToArray("Info.plist");

Result

Array
(
    [CFBundleAllowMixedLocalizations] => 1
    [CFBundleDevelopmentRegion] => de_DE
    [CFBundleDisplayName] => Test
    [CFBundleExecutable] => ${EXECUTABLE_NAME}
    [CFBundleIcons] => Array
        (
            [UINewsstandIcon] => Array
                (
                    [CFBundleIconFiles] => Array
                        (
                            [0] => 1.png
                            [1] => 1@2x.png
                        )

                    [UINewsstandBindingEdge] => UINewsstandBindingEdgeBottom
                    [UINewsstandBindingType] => UINewsstandBindingTypeNewspaper
                )

        )

    [UIPrerenderedIcon] => 1
    [UIRequiredDeviceCapabilities] => Array
        (
            [0] => armv7
        )

    [UIRequiresFullScreen] => 1
    [UISupportedInterfaceOrientations] => Array
        (
            [0] => UIInterfaceOrientationPortrait
            [1] => UIInterfaceOrientationLandscapeLeft
            [2] => UIInterfaceOrientationLandscapeRight
        )

    [UISupportedInterfaceOrientations~ipad] => Array
        (
            [0] => UIInterfaceOrientationPortrait
            [1] => UIInterfaceOrientationPortraitUpsideDown
            [2] => UIInterfaceOrientationLandscapeLeft
            [3] => UIInterfaceOrientationLandscapeRight
        )

    [UIViewControllerBasedStatusBarAppearance] => 
)

Search key in Plist file

$result = $plistParser->searchKeyInPlist("Info.plist", "CFBundleDisplayName");
// Test

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 7
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-01