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

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

singlequote/laravel-xml-parser
==============================

2.0.0(4y ago)01.1k↓33.3%MITPHPPHP ^8.0

Since Jun 28Pushed 4y ago1 watchersCompare

[ Source](https://github.com/singlequote/larave-xml-parser)[ Packagist](https://packagist.org/packages/singlequote/laravel-xml-parser)[ Docs](https://github.com/singlequote/laravel-xml-parser)[ RSS](/packages/singlequote-laravel-xml-parser/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

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

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

[![Latest Version on Packagist](https://camo.githubusercontent.com/e1a1d2e2d56c7b01d885776c466e6a30bae5d11c4e76d521f7241ce86f4e8740/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73696e676c6571756f74652f6c61726176656c2d786d6c2d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/singlequote/laravel-xml-parser)[![Total Downloads](https://camo.githubusercontent.com/3fa362a634dfcf2dc1085f99ae88d9a816ca6c9f4c74d168152293acb9bdfeed/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73696e676c6571756f74652f6c61726176656c2d786d6c2d7061727365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/singlequote/laravel-xml-parser)

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

[](#installation)

You can install the package via composer:

```
composer require singlequote/laravel-xml-parser
```

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://singlequote.github.io/larave-xml-parser/export)
- [Importing](https://singlequote.github.io/larave-xml-parser/import)

```
$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](CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Wim Pruiksma](https://github.com/wimurk)
- [All Contributors](https://github.com/singlequote/larave-xml-parser/graphs/contributors)

License
-------

[](#license)

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

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~15 days

Total

2

Last Release

1768d ago

Major Versions

1.0.0 → 2.0.02021-07-13

PHP version history (2 changes)1.0.0PHP ^7.2

2.0.0PHP ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/14072334?v=4)[Wimurk](/maintainers/wimurk)[@wimurk](https://github.com/wimurk)

---

Top Contributors

[![wimurk](https://avatars.githubusercontent.com/u/14072334?v=4)](https://github.com/wimurk "wimurk (7 commits)")

---

Tags

laravelxmlreader

### Embed Badge

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

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

###  Alternatives

[flowgistics/laravel-xml

1674.2k2](/packages/flowgistics-laravel-xml)[ultrono/laravel-sitemap

Sitemap generator for Laravel 11, 12 and 13

36412.6k6](/packages/ultrono-laravel-sitemap)[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)
