2017 © Pedro Peláez
 

library laravel-response-xml

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

image

jailtonsc/laravel-response-xml

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

  • Saturday, June 30, 2018
  • by jailtonsc
  • Repository
  • 1 Watchers
  • 23 Stars
  • 5,848 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 5 Open issues
  • 20 Versions
  • 17 % Grown

The README.md

Laravel Response XML

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

Total Downloads Latest Stable Version Latest Unstable Version, (*2)

Composer Installation

composer require jailtonsc/laravel-response-xml

Integration with Laravel 5.*

Add in config/app.php in place providers, (*3)

XmlResponse\XmlResponseServiceProvider::class

Add in config/app.php in place aliases, (*4)

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

Publish

php artisan vendor:publish

Example

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

With status code, (*5)

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

Setting by code, (*6)

$config = [
        'template' => '<test></test>',
        'rowName' => 'name'
    ];

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

Return string xml, (*7)

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

Or, (*8)

$config = [
        'template' => '<test></test>',
        'rowName' => 'name'
    ];

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

Configuration

file config/xml.php, (*9)

template: xml template., (*10)

caseSensitive: case sensitive xml tag., (*11)

showEmptyField: Show empty field., (*12)

charset: encoding., (*13)

rowName: line name if it is an array., (*14)

License

The Laravel Response XML is open-sourced software licensed under the MIT license, (*15)

The Versions

30/06 2018

dev-master

9999999-dev

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

30/06 2018

v3.0.1

3.0.1.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

30/06 2018

v3.0

3.0.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

16/06 2018

v2.3.2

2.3.2.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

16/06 2018

v2.3

2.3.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

16/06 2018

v2.3.1

2.3.1.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

01/06 2018

v2.2

2.2.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

18/03 2018

v2.1

2.1.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

02/06 2017

v2

2.0.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

28/05 2017

v1.1.9

1.1.9.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

14/04 2017

v1.1.7

1.1.7.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

14/04 2017

v1.1.8

1.1.8.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

30/03 2017

v1.1.6

1.1.6.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

20/01 2017

v1.1.5

1.1.5.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

20/01 2017

v1.1.4

1.1.4.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

19/09 2016

v1.1.3

1.1.3.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

19/09 2016

v1.1.2

1.1.2.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent response

19/09 2016

v1.1.1

1.1.1.0

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

  Sources   Download

MIT

The Requires

 

laravel xml eloquent response

20/08 2016

v1.1

1.1.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent

20/08 2016

v1.0

1.0.0.0

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

  Sources   Download

MIT

The Requires

  • php >=5.5.9

 

laravel xml eloquent