Skip to content

Commit 9619d99

Browse files
committed
changed namespace to phpmonsters
1 parent 726f6c3 commit 9619d99

File tree

5 files changed

+26
-18
lines changed

5 files changed

+26
-18
lines changed

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@ Added a method to Laravel response for handling xml response and also converting
44
### Composer Installation
55

66
```php
7-
composer require tartan/laravel-xml-repsonse
7+
composer require php-monsters/laravel-xml-repsonse
88
```
99

10-
### Integration with Laravel 5.*
10+
### Integration with Laravel 5.0+
1111

1212
for Laravel < 5.6 add to config/app.php
1313

1414
```php
15-
Tartan\XmlResponse\XmlResponseServiceProvider::class
15+
PhpMonsters\XmlResponse\XmlResponseServiceProvider::class
1616
```
1717

1818
### Publish
@@ -37,11 +37,11 @@ Route::get('/foo', function () {
3737

3838
## Team
3939

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

42-
[![Aboozar Ghaffari](https://avatars1.githubusercontent.com/u/502961?s=130&v=4)](https://github.com/iamtartan) |
42+
[![Aboozar Ghaffari](https://avatars1.githubusercontent.com/u/502961?s=130&v=4)](https://github.com/samuraee) |
4343
--- |
44-
[Aboozar Ghaffari](https://github.com/iamtartan) |
44+
[Aboozar Ghaffari](https://github.com/samuraee) |
4545

4646

4747
### License

composer.json

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,30 @@
11
{
2-
"name": "tartan/laravel-xml-response",
2+
"name": "php-monsters/laravel-xml-response",
33
"description": "Added a method to Laravel response for handling xml response and also converting Eloquent return to XML.",
44
"keywords": ["xml", "laravel", "eloquent", "response"],
55
"type": "library",
66
"license": "MIT",
77
"authors": [
88
{
99
"name": "Aboozar Ghaffari",
10-
"email": "[email protected]",
11-
"homepage": "http://tartan.us.to/"
10+
"email": "[email protected]"
1211
}
1312
],
1413
"require": {
1514
"php": ">=5.5.9",
16-
"illuminate/support": ">5.0.0"
15+
"illuminate/support": ">5.0.0",
16+
"ext-simplexml": "*"
1717
},
1818
"autoload": {
1919
"psr-4": {
20-
"Tartan\\XmlResponse\\": "src/XmlResponse"
20+
"PhpMonsters\\XmlResponse\\": "src/XmlResponse"
21+
}
22+
},
23+
"extra": {
24+
"laravel": {
25+
"providers": [
26+
"PhpMonsters\\Log\\XLogServiceProvider"
27+
]
2128
}
2229
},
2330
"minimum-stability": "stable"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?php
2-
namespace Tartan\XmlResponse\Exception;
2+
namespace PhpMonsters\XmlResponse\Exception;
33

44
class XmlResponseException extends \Exception {}

src/XmlResponse/XmlResponse.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?php
22

3-
namespace Tartan\XmlResponse;
3+
namespace PhpMonsters\XmlResponse;
44

55
use Illuminate\Support\Facades\Response;
66
use Illuminate\Container\Container;
7-
use Tartan\XmlResponse\Exception\XmlResponseException;
7+
use PhpMonsters\XmlResponse\Exception\XmlResponseException;
88

99
/**
1010
* Class XmlResponse
@@ -98,12 +98,13 @@ private function addAttribute($attribute = [], \SimpleXMLElement $xml)
9898

9999
/**
100100
* @param $array
101-
* @param bool $xml
102-
* @param array $headerAttribute
103-
* @param string $template
101+
* @param bool $xml
102+
* @param array $headerAttribute
103+
* @param string $template
104104
*
105105
* @return mixed
106106
* @throws XmlResponseException
107+
* @throws \Exception
107108
*/
108109
function array2xml($array, $xml = false, $headerAttribute = [], $template = null)
109110
{

src/XmlResponse/XmlResponseServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?php
22

3-
namespace Tartan\XmlResponse;
3+
namespace PhpMonsters\XmlResponse;
44

55
use Illuminate\Support\Facades\Response;
66
use Illuminate\Support\ServiceProvider;

0 commit comments

Comments
 (0)