2017 © Pedro Peláez
 

library php-xml

XML-to-array conversion in PHP.

image

chrisullyott/php-xml

XML-to-array conversion in PHP.

  • Saturday, March 24, 2018
  • by chrisullyott
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

php-xml

XML-to-array conversion in PHP. Built for pulling items from a variety of RSS feeds., (*1)

Installation

With Composer:, (*2)

$ composer require chrisullyott/php-xml

Usage

use ChrisUllyott\XmlParser;

$parser = new XmlParser('path/to/feed.xml'); // or pass in a raw XML string

$items = $parser->getItems();

print_r($items);

Each feed item and their child attributes are parsed into a flat structure:, (*3)

(
    [0] => Array
        (
            [title] => News for September the Second
            [link] => http://example.com/2002/09/01/news-for-september-the-second
            [guid] => 20020901-news-for-september-the-second
            [guid_isPermaLink] => 0
            [description] => Things happened today!
        )

    [1] => Array
        (
            [title] => News for September the First
            [link] => http://example.com/2002/09/01/news-for-september-the-first
            [guid] => 20020901-news-for-september-the-first
            [guid_isPermaLink] => 0
            [description] => Things happened today!
        )

)

The Versions

24/03 2018

dev-dev

dev-dev https://github.com/chrisullyott/php-xml

XML-to-array conversion in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

24/03 2018

dev-master

9999999-dev https://github.com/chrisullyott/php-xml

XML-to-array conversion in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

24/03 2018

0.1

0.1.0.0 https://github.com/chrisullyott/php-xml

XML-to-array conversion in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0