PHPackages                             tartan/laravel-xml-response - 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. [Database &amp; ORM](/categories/database)
4. /
5. tartan/laravel-xml-response

ActiveLibrary[Database &amp; ORM](/categories/database)

tartan/laravel-xml-response
===========================

Added a method to Laravel response for handling xml response and also converting Eloquent return to XML.

v6.0.1(3y ago)5810[1 issues](https://github.com/samuraee/laravel-xml-repsonse/issues)MITPHPPHP &gt;=5.5.9

Since Jun 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/samuraee/laravel-xml-repsonse)[ Packagist](https://packagist.org/packages/tartan/laravel-xml-response)[ RSS](/packages/tartan-laravel-xml-response/feed)WikiDiscussions master Synced today

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

Laravel XML Response
====================

[](#laravel-xml-response)

Added a method to Laravel response for handling xml response and also converting Eloquent return to XML.

### Composer Installation

[](#composer-installation)

```
composer require php-monsters/laravel-xml-response
```

### Integration with Laravel 5.0+

[](#integration-with-laravel-50)

for Laravel &lt; 5.6 add to config/app.php

```
PhpMonsters\XmlResponse\XmlResponseServiceProvider::class
```

### Publish

[](#publish)

```
php artisan vendor:publish --provider="PhpMonsters\XmlResponse\XmlResponseServiceProvider"
```

### Example

[](#example)

```
// basic usage with default config from xml.php file
Route::get('/', function () {
    return response()->xml(User::all());
});

// custom template like: ''
Route::get('/foo', function () {
    return response()->xml(['foo' => 1, 'bar' => 2, 'baz' => 3], [], ');
});
```

Team
----

[](#team)

This component is developed by the following person(s) and a bunch of [awesome contributors](https://github.com/samuraee/laravel-xml-repsonse/graphs/contributors).

[![Aboozar Ghaffari](https://avatars1.githubusercontent.com/u/502961?s=130&v=4)](https://github.com/samuraee)[Aboozar Ghaffari](https://github.com/samuraee)### License

[](#license)

The Laravel XML Response is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 85.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 ~386 days

Total

5

Last Release

1339d ago

Major Versions

v5.0.2 → v6.0.02022-09-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/9299d1f63e54a717d0b785253adc636f90c3b460ae9bd24bfc1505ef5f90f1ec?d=identicon)[tartan](/maintainers/tartan)

---

Top Contributors

[![samuraee](https://avatars.githubusercontent.com/u/502961?v=4)](https://github.com/samuraee "samuraee (12 commits)")[![jrquick17](https://avatars.githubusercontent.com/u/7435558?v=4)](https://github.com/jrquick17 "jrquick17 (2 commits)")

---

Tags

responselaravelxmleloquent

### Embed Badge

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

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

###  Alternatives

[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[watson/validating

Eloquent model validating trait.

9723.3M47](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)[jailtonsc/laravel-response-xml

Add the method xml integrating the laravel's response, converting eloquent return to XML.

48274.4k](/packages/jailtonsc-laravel-response-xml)

PHPackages © 2026

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