array-to-xml
Arrayy
array-to-xml | Arrayy | |
---|---|---|
3 | 1 | |
1,096 | 478 | |
0.5% | - | |
5.9 | 2.3 | |
1 day ago | 9 days ago | |
PHP | PHP | |
MIT 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.
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
Arrayy
-
What do you consider to be PHP's most underrated feature/function?
combined example: https://github.com/voku/Arrayy/blob/baf3d3706575bd6e1e3b870cf5f5460abfc76167/src/Arrayy.php#L4225
What are some alternatives?
simple-excel - Read and write simple Excel and CSV files
YaLinqo - Yet Another LINQ to Objects for PHP [Simplified BSD]
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
Serializer - Library for (de-)serializing data of any complexity (supports JSON, and XML)
arrays - Yii Array Helper
Collections
Serializard - Flexible serializer encouraging good object design
Ginq - `LINQ to Object` inspired DSL for PHP
aphiria - A simple, extensible REST API framework for PHP
Ardent - A Collections library for PHP.
xml-timetabler - A simple PHP framework for inputting meeting/events to an xml file and then reading and updating that file as needed.
PHP Collections - General Purpose Collection Library for PHP