PHPackages                             flowgistics/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. flowgistics/laravel-xml

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

flowgistics/laravel-xml
=======================

1.2.0(1y ago)1674.2k↑79.5%72MITPHPPHP ^8.0CI passing

Since Jun 22Pushed 1y ago1 watchersCompare

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

READMEChangelog (4)Dependencies (5)Versions (5)Used By (2)

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/86731638fe216d3be008cc28e9a7b3904523650e3c2af7e3753e936b7fc5a178/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f666c6f77676973746963732f6c61726176656c2d786d6c2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/flowgistics/laravel-xml)[![GitHub Tests Action Status](https://camo.githubusercontent.com/225a5e4fa8a9afbb293e46466b03c1137212eb4bb01cd8259d31db9782ab51db/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f666c6f77676973746963732f6c61726176656c2d786d6c2f72756e2d74657374733f6c6162656c3d7465737473)](https://github.com/flowgistics/laravel-xml/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/a05a6564205764338e9434b3851fb04b4251b3d990df7291748ac7d0487e73b5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f666c6f77676973746963732f6c61726176656c2d786d6c2f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/flowgistics/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/flowgistics/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 flowgistics/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

44

—

FairBetter than 92% of packages

Maintenance46

Moderate activity, may be stable

Popularity41

Moderate usage in the ecosystem

Community16

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.7% 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

Every ~458 days

Total

4

Last Release

417d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/87f43d047288668d560d9f255bac930f7759cc48083f2ed90d3c4a88a4c70247?d=identicon)[AmandoVledder](/maintainers/AmandoVledder)

---

Top Contributors

[![AmandoVledder](https://avatars.githubusercontent.com/u/15369884?v=4)](https://github.com/AmandoVledder "AmandoVledder (11 commits)")[![dimitrioskarvounaris](https://avatars.githubusercontent.com/u/66212726?v=4)](https://github.com/dimitrioskarvounaris "dimitrioskarvounaris (1 commits)")

---

Tags

laravelxmlreader

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Type Coverage Yes

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/flowgistics-laravel-xml/health.svg)](https://phpackages.com/packages/flowgistics-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)[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)
