2017 © Pedro Peláez
 

library plistparser

A PHP Class for Reading and Parsing XML Plist files

image

akturan/plistparser

A PHP Class for Reading and Parsing XML Plist files

  • Wednesday, March 1, 2017
  • by Akturan
  • Repository
  • 1 Watchers
  • 0 Stars
  • 25 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 47 % Grown

The README.md

PHP Plist Parser

A PHP Class for Reading and Parsing XML Plist files, (*1)

Install

Install using Composer., (*2)

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

The Versions

01/03 2017

dev-master

9999999-dev

A PHP Class for Reading and Parsing XML Plist files

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Hüseyin Akturan

parser plist plistparser

01/03 2017

v1.1

1.1.0.0

A PHP Class for Reading and Parsing XML Plist files

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Hüseyin Akturan

parser plist plistparser

01/03 2017

v1.0

1.0.0.0

A PHP Class for Reading and Parsing XML Plist files

  Sources   Download

MIT

The Requires

  • php ^5.3.3 || ^7.0

 

by Hüseyin Akturan

parser plist plistparser