laminas-xml
array-to-xml
laminas-xml | array-to-xml | |
---|---|---|
1 | 3 | |
15 | 1,097 | |
- | 0.6% | |
3.6 | 5.9 | |
6 months ago | 20 days ago | |
PHP | PHP | |
BSD 3-clause "New" or "Revised" License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
laminas-xml
-
Is DOMDocument safe for parsing unknown HTML?
I remember there are known vulnerabilities. You can use laminas-xml to load the HTML and then work with DOMDocument as usual. It's a really small package which started in the Zend Framework. See https://github.com/laminas/laminas-xml
array-to-xml
-
Using Laravel Resource Collections with exports
Once you have created the resource you can reuse it as it was originally intended as an API response, but you could also use it with another Spatie package called array to xml to convert your array into an XML file instead of a CSV or Excel file.
-
Is there a PHP library to create a XML document from xpath => value mapping?
could be done that way theoretically, but as processing input from paths to array is needed I'd rather use https://github.com/spatie/array-to-xml mentioned by @lavanderson, less work
What are some alternatives?
laravel-sitemap - Create and generate sitemaps with ease
simple-excel - Read and write simple Excel and CSV files
countries - World countries in JSON, CSV, XML and Yaml. Any help is welcome!
countries-states-cities-database - 🌍 Discover our global repository of countries, states, and cities! 🏙️ Get comprehensive data in JSON, SQL, PSQL, XML, YAML, and CSV formats. Access ISO2, ISO3 codes, country code, capital, native language, timezones (for countries), and more. #countries #states #cities
stream-parser - ⚡ PHP7 / Laravel Multi-format Streaming Parser
arrays - Yii Array Helper
DiDOM - Simple and fast HTML and XML parser
Arrayy - 🗃 Array manipulation library for PHP, called Arrayy!
serializer - Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.
Serializard - Flexible serializer encouraging good object design