Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/mcfedr/plist

A php library for reading and writing plist files
https://github.com/mcfedr/plist

Last synced: 2 months ago
JSON representation

A php library for reading and writing plist files

Awesome Lists containing this project

README

        

# Plist

A simple php library for reading and writing plist files in xml format

[![Latest Stable Version](https://poser.pugx.org/mcfedr/plist/v/stable.png)](https://packagist.org/packages/mcfedr/plist)
[![License](https://poser.pugx.org/mcfedr/plist/license.png)](https://packagist.org/packages/mcfedr/plist)
[![Build Status](https://travis-ci.org/mcfedr/plist.svg?branch=master)](https://travis-ci.org/mcfedr/plist)
[![codecov](https://codecov.io/gh/mcfedr/plist/branch/master/graph/badge.svg)](https://codecov.io/gh/mcfedr/plist)

- Handling 'invalid' xml characters (such as received from MDM)
- Should handle larger files

## Install

```bash
composer require mcfedr/plist
```

## Usage

### Reading

```php
$reader = new PlistReader();
$plist = $reader->read($xml);
```

### Writing

```php
$plist = new Plist();
$writer = new PlistWriter();
$xml = $writer->write($plist);
```