blvckgvd / xml_lib
PHP library to work with XML files without any problems
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/blvckgvd/xml_lib
Requires
- php: >=5.5
- ext-json: *
- ext-libxml: *
- ext-simplexml: *
This package is not auto-updated.
Last update: 2026-01-11 01:08:48 UTC
README
Light weight library to convert XML files to JSON or Array
Installation
Install currencylib with composer
composer require blvckgvd/xml_lib
Usage/Examples
Get JSON from XML
use Blvckgvd\XmlLib\XmlLib; public function getArrayFromXml() { $json = XmlLib::toJson('<path to xml>'); return $json; } // will return json
Get Array from XML
use Blvckgvd\XmlLib\XmlLib; public function getArrayFromXml() { $arr = XmlLib::toArray('<path to xml>'); return $arr; } // will return array