flowgistics/laravel-xml
85,077
16
| Install | |
|---|---|
composer require flowgistics/laravel-xml |
|
| Latest Version: | 1.2.0 |
| PHP: | ^8.0 |
| License: | MIT |
| Last Updated: | Mar 28, 2025 |
| Links: | GitHub · Packagist |
Maintainer: AmandoVledder
Laravel XML made easy!
This package handles importing and exporting XML data from your Laravel application.
The main features are
- Fast XML importing with the ability to cast to classes and models
- XML exporting from (nested / value only ) arrays
- Exporting Laravel views to XML
Installation
You can install the package via composer:
composer require flowgistics/laravel-xml
Usage
This packages comes with a facade which you can use like this \XML:: or use it in your class like use XML;
In depth guides can be found here:
$notes = XML::import("notes.xml")
->cast('note')->to(NoteModel::class)
->expect('note')->as('array')
->optimize('camelcase')
->get();
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
daniel-furmanov/laravel-formatter
A formatting library that converts data output between XML, CSV, JSON, TXT, YAML...
27,345
4
soapbox/laravel-formatter
A formatting library that converts data output between XML, CSV, JSON, TXT, YAML...
1,100,290
247
jailtonsc/laravel-response-xml
Add the method xml integrating the laravel's response, converting eloquent retur...
309,134
46