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
You can install the package via composer:
composer require flowgistics/laravel-xml
This packages comes with a facade which you can use like this
\XML:: or use it in your class like
In depth guides can be found here:
$notes = XML::import("notes.xml") ->cast('note')->to(NoteModel::class) ->expect('note')->as('array') ->optimize('camelcase') ->get();
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.