array-to-xml
simple-excel
array-to-xml | simple-excel | |
---|---|---|
3 | 3 | |
1,096 | 1,093 | |
0.5% | 1.2% | |
5.9 | 6.9 | |
1 day ago | 8 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
simple-excel
- Big data alternatives to Laravel Excel?
-
Creating multi-worksheet Excel files with Simple Excel
The Simple Excel package uses the box/spout package under the hood. In the readme it states that you can get to the underlying writer using ->getWriter().
-
Using Laravel Resource Collections with exports
Now we are ready to make use of the Simple Excel package from Spatie to convert our array into an Excel file.
What are some alternatives?
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
laravel-simple-csv - A simple CSV importer / exporter for Laravel Framework that supports Lazy Collections and Stream Downloads
arrays - Yii Array Helper
gotenberg-php - 🐘 A PHP client for interacting with Gotenberg.
Arrayy - 🗃 Array manipulation library for PHP, called Arrayy!
Spout - Read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way
Serializard - Flexible serializer encouraging good object design
magmi-m2 - Magmi GitHub, see branch magento2 for a version compatible with Magento 2
aphiria - A simple, extensible REST API framework for PHP
openspout - Read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way
xml-timetabler - A simple PHP framework for inputting meeting/events to an xml file and then reading and updating that file as needed.
read-time - Get estimated read time of an article. Similar to medium.com's "x min read". Multilingual including right-to-left written languages. Supports JSON, Array and String output.