PHPackages                             snowsoft/laravel-xml - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. snowsoft/laravel-xml

ActiveLibrary[Parsing &amp; Serialization](/categories/parsing)

snowsoft/laravel-xml
====================

v0.01(3y ago)064MITPHPPHP 8.\*

Since Mar 9Pushed 3y agoCompare

[ Source](https://github.com/snowsoft/laravel-xml)[ Packagist](https://packagist.org/packages/snowsoft/laravel-xml)[ Docs](https://github.com/Flowgistics/laravel-xml)[ RSS](/packages/snowsoft-laravel-xml/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (5)Versions (2)Used By (0)

Laravel XML made easy!
======================

[](#laravel-xml-made-easy)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e1419d950895d1ffc8251519103d60a8f664e3fc6ad077cd1c7f99846a9678aa/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736e6f77736f66742f6c61726176656c2d786d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/snowsoft/laravel-xml)[![GitHub Tests Action Status](https://camo.githubusercontent.com/d6e0f940887b49e9ec3130643d909cf419234693265e166de10a955a9901124d/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f736e6f77736f66742f6c61726176656c2d786d6c2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/snowsoft/laravel-xml/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f0c19bba23e58f69e64c704252524bcd8bdcedfbca30a5840ad171dfee7ac980/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f736e6f77736f66742f6c61726176656c2d786d6c2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/snowsoft/laravel-xml/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/9314136bbe0cbd9ef2eae1f36a4985ca3fdbe0269ea44d6d63c0a6e2136b2f3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f666c6f77676973746963732f6c61726176656c2d786d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/snowsoft/laravel-xml)

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
------------

[](#installation)

You can install the package via composer:

```
composer require snowsoft/laravel-xml
```

Usage
-----

[](#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:

- [Exporting](https://github.com/Flowgistics/laravel-xml/wiki/Exporting)
- [Importing](https://github.com/Flowgistics/laravel-xml/wiki/Importing)

```
$notes = XML::import("notes.xml")
    ->cast('note')->to(NoteModel::class)
    ->expect('note')->as('array')
    ->optimize('camelcase')
    ->get();
```

### Changelog

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Flowgistics](https://github.com/Flowgistics)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 Bus Factor1

Top contributor holds 61.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1157d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/82e2e5c31874e6660f06e56f1bf60eebc23db8b6ef8e719e9f52ae6db07f90e3?d=identicon)[snowsoft](/maintainers/snowsoft)

---

Top Contributors

[![AmandoVledder](https://avatars.githubusercontent.com/u/15369884?v=4)](https://github.com/AmandoVledder "AmandoVledder (8 commits)")[![snowsoft](https://avatars.githubusercontent.com/u/4568234?v=4)](https://github.com/snowsoft "snowsoft (5 commits)")

---

Tags

laravelxmlreader

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

![Health badge](/badges/snowsoft-laravel-xml/health.svg)

```
[![Health](https://phpackages.com/badges/snowsoft-laravel-xml/health.svg)](https://phpackages.com/packages/snowsoft-laravel-xml)
```

###  Alternatives

[ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13

36412.6k6](/packages/ultrono-laravel-sitemap)[bmatovu/laravel-xml

Laravel XML Support

91270.4k](/packages/bmatovu-laravel-xml)[flowgistics/laravel-xml

1674.2k2](/packages/flowgistics-laravel-xml)[tucker-eric/laravel-xml-middleware

A Laravel Middleware to accept XML requests

181.2M](/packages/tucker-eric-laravel-xml-middleware)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
