acfbentveld / xml
This package is abandoned and no longer maintained.
The author suggests using the flowgistics/laravel-xml package instead.
v4.0.0
2021-02-19 07:39 UTC
Requires
- php: ^7.2|^8.0
- ext-dom: *
- ext-json: *
- ext-simplexml: *
- illuminate/support: 5.*|6.*|7.*|8.*
Requires (Dev)
- orchestra/testbench: ~3.5.0|~3.6.0|~3.7.0|~4.0.0
- phpunit/phpunit: ^7.0|^8.0
- spatie/phpunit-snapshot-assertions: ^1.3|^4.0
Suggests
- illuminate/view: Required to use the load view feature.
- laravel/laravel: Required to use the load view feature.
Provides
None
Conflicts
None
Replaces
None
README
This package is optimized XML handling package for Laravel aiming to be easy and fast.
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 acfbentveld/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.
Security
If you discover any security related issues, please email wim@acfbentveld.nl instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.