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

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

kottergroup/laravel-response-xml
================================

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

v3.0.3(5y ago)016MITPHPPHP &gt;=5.5.9

Since Aug 20Pushed 5y agoCompare

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

READMEChangelogDependenciesVersions (22)Used By (0)

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

[](#laravel-response-xml)

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

[![Total Downloads](https://camo.githubusercontent.com/303b65d87cd4010957b16cee5abb47539db368f943b742b543d24783a44c58e9/68747470733a2f2f706f7365722e707567782e6f72672f6a61696c746f6e73632f6c61726176656c2d726573706f6e73652d786d6c2f642f746f74616c2e737667)](https://packagist.org/packages/jailtonsc/laravel-response-xml)[![Latest Stable Version](https://camo.githubusercontent.com/d8e490fd312d6e10c6532a7dae9bf08b4a410b355214ad8bc81793d56e12a6d0/68747470733a2f2f706f7365722e707567782e6f72672f6a61696c746f6e73632f6c61726176656c2d726573706f6e73652d786d6c2f762f737461626c652e737667)](https://packagist.org/packages/jailtonsc/laravel-response-xml)[![Latest Unstable Version](https://camo.githubusercontent.com/60852383d98f8b07515ffb32d34eace098a354d0f4c4f4a144f7e42c7c3c2e81/68747470733a2f2f706f7365722e707567782e6f72672f6a61696c746f6e73632f6c61726176656c2d726573706f6e73652d786d6c2f762f756e737461626c652e737667)](https://packagist.org/packages/jailtonsc/laravel-response-xml)

### Composer Installation

[](#composer-installation)

```
composer require jailtonsc/laravel-response-xml
```

### Integration with Laravel 5.\*

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

Add in config/app.php in place providers

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

Add in config/app.php in place aliases

```
'Xml' => XmlResponse\Facades\XmlFacade::class
```

### Publish

[](#publish)

```
php artisan vendor:publish
```

### Example

[](#example)

```
Route::get('/', function () {
    return response()->xml(User::all());
});
```

With status code

```
Route::get('/', function () {
    return response()->xml(User::all(), 404);
});
```

Setting by code

```
$config = [
        'template' => '',
        'rowName' => 'name'
    ];

Route::get('/', function () {
    return response()->xml(User::all(), 200, $config);
});
```

Return string xml

```
$xml = Xml::asXml(User::all());
```

Or

```
$config = [
        'template' => '',
        'rowName' => 'name'
    ];

$xml = Xml::asXml(User::all(), $config);
```

### Configuration

[](#configuration)

file config/xml.php

**template**: xml template.

**caseSensitive**: case sensitive xml tag.

**showEmptyField**: Show empty field.

**charset**: encoding.

**rowName**: line name if it is an array.

### License

[](#license)

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

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 80.6% 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 ~69 days

Recently: every ~178 days

Total

21

Last Release

2175d ago

Major Versions

v1.1.9 → v2.12018-03-18

v2.3.2 → v3.02018-06-30

### Community

Maintainers

![](https://www.gravatar.com/avatar/bc291cb5f6f0dd0020ec0a083fe601b99da73d38156e3e64ef951774723c167b?d=identicon)[RedcliffeDev](/maintainers/RedcliffeDev)

---

Top Contributors

[![jailtonsc](https://avatars.githubusercontent.com/u/3289488?v=4)](https://github.com/jailtonsc "jailtonsc (29 commits)")[![roblesterjr04](https://avatars.githubusercontent.com/u/6423115?v=4)](https://github.com/roblesterjr04 "roblesterjr04 (3 commits)")[![keithgallant](https://avatars.githubusercontent.com/u/2333003?v=4)](https://github.com/keithgallant "keithgallant (2 commits)")[![aluciffer](https://avatars.githubusercontent.com/u/3103030?v=4)](https://github.com/aluciffer "aluciffer (1 commits)")[![robinwkurtz](https://avatars.githubusercontent.com/u/4428953?v=4)](https://github.com/robinwkurtz "robinwkurtz (1 commits)")

---

Tags

responselaravelxmleloquent

### Embed Badge

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

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

###  Alternatives

[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)[rtconner/laravel-likeable

Trait for Laravel Eloquent models to allow easy implementation of a 'like' or 'favorite' or 'remember' feature.

394388.0k5](/packages/rtconner-laravel-likeable)[highsolutions/eloquent-sequence

A Laravel package for easy creation and management sequence support for Eloquent models with elastic configuration.

121130.3k](/packages/highsolutions-eloquent-sequence)[cybercog/laravel-nova-ban

A Laravel Nova banning functionality for your application.

40199.8k](/packages/cybercog-laravel-nova-ban)[phaza/single-table-inheritance

Single Table Inheritance Trait

1515.8k](/packages/phaza-single-table-inheritance)

PHPackages © 2026

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