Skip to content

Commit a0a58e7

Browse files
Added JSON feed support
1 parent b562cd3 commit a0a58e7

39 files changed

+741
-159
lines changed

config/feeds.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,4 +113,10 @@
113113
Transformers\EnumTransformer::class,
114114
// Transformers\NullTransformer::class,
115115
],
116+
117+
'converters' => [
118+
'json' => [
119+
'options' => JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE,
120+
],
121+
],
116122
];

docs/snippets/advanced-directive-array.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
<array_directive>
33

44
<user>
5-
<name>Miss Candace Fadel DVM</name>
6-
<avatar>https://via.placeholder.com/640x480.png/002200?text=occaecati</avatar>
7-
<avatar>https://via.placeholder.com/640x480.png/00ee99?text=odio</avatar>
8-
<images name="cumque fugit maiores">https://via.placeholder.com/640x480.png/006611?text=numquam</images>
9-
<images name="reiciendis aperiam molestias">https://via.placeholder.com/640x480.png/004400?text=quibusdam</images>
5+
<name>Giles Graham</name>
6+
<avatar>https://via.placeholder.com/640x480.png/0066dd?text=ullam</avatar>
7+
<avatar>https://via.placeholder.com/640x480.png/0033ff?text=autem</avatar>
8+
<images name="sit consequatur ipsa">https://via.placeholder.com/640x480.png/00ddaa?text=voluptatibus</images>
9+
<images name="deserunt aspernatur veniam">https://via.placeholder.com/640x480.png/00cc55?text=in</images>
1010
</user>
1111
<user>
12-
<name>Mavis Botsford Sr.</name>
13-
<avatar>https://via.placeholder.com/640x480.png/0000ee?text=aut</avatar>
14-
<avatar>https://via.placeholder.com/640x480.png/0077dd?text=ut</avatar>
15-
<images name="fuga qui sit">https://via.placeholder.com/640x480.png/001155?text=quidem</images>
16-
<images name="voluptatem qui dolorum">https://via.placeholder.com/640x480.png/00aaff?text=eum</images>
12+
<name>Katelyn Harber</name>
13+
<avatar>https://via.placeholder.com/640x480.png/0066dd?text=voluptatem</avatar>
14+
<avatar>https://via.placeholder.com/640x480.png/004488?text=quaerat</avatar>
15+
<images name="consequuntur voluptatem voluptatem">https://via.placeholder.com/640x480.png/006655?text=ipsam</images>
16+
<images name="fugiat consectetur qui">https://via.placeholder.com/640x480.png/007788?text=nam</images>
1717
</user>
1818

1919
</array_directive>
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<attributes_directive>
33

4-
<company since="1987"/>
4+
<company since="2007"/>
55
<url>https://example.com</url>
66

77
<user>
8-
<name>Jules Herman</name>
9-
<contact email="nwiza@example.net" phone="555-000-1"/>
8+
<name>Melvina Beer</name>
9+
<contact email="lchamplin@example.org" phone="555-000-1"/>
1010
</user>
1111
<user>
12-
<name>Donavon Borer</name>
13-
<contact email="cronin.anabel@example.net" phone="555-000-2"/>
12+
<name>Vivienne Willms</name>
13+
<contact email="raynor.bertram@example.com" phone="555-000-2"/>
1414
</user>
1515

1616
</attributes_directive>

docs/snippets/advanced-directive-cdata.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<cdata_directive>
33

44
<user>
5-
<name><![CDATA[<h1>Deborah Koelpin</h1>]]></name>
6-
<email>dorris.keeling@example.com</email>
5+
<name><![CDATA[<h1>Elmo Hilpert</h1>]]></name>
6+
<email>alex.mohr@example.net</email>
77
</user>
88
<user>
9-
<name><![CDATA[<h1>Providenci Bednar</h1>]]></name>
10-
<email>amari30@example.com</email>
9+
<name><![CDATA[<h1>Golden Sawayn</h1>]]></name>
10+
<email>jamison.ritchie@example.net</email>
1111
</user>
1212

1313
</cdata_directive>

docs/snippets/advanced-directive-mixed.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,17 @@
22
<mixed_directive>
33

44
<user>
5-
<name>Celestino Ledner</name>
5+
<name>Dr. Hudson Waters</name>
66
<some>
77
<first>Foo</first>
8-
<second>katheryn80@example.net</second>
8+
<second>macejkovic.lois@example.net</second>
99
</some>
1010
</user>
1111
<user>
12-
<name>Dr. Tyrel Walter MD</name>
12+
<name>Scarlett Walter</name>
1313
<some>
1414
<first>Foo</first>
15-
<second>maggie70@example.net</second>
15+
<second>ahaag@example.org</second>
1616
</some>
1717
</user>
1818

docs/snippets/advanced-directive-value.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22
<value_directive>
33

44
<user>
5-
<name>Ignatius Schroeder</name>
6-
<contact type="email">weimann.maegan@example.org</contact>
5+
<name>Eldon Lind IV</name>
6+
<contact type="email">rlarkin@example.org</contact>
77
</user>
88
<user>
9-
<name>Dr. William Wintheiser II</name>
10-
<contact type="email">gottlieb.curt@example.com</contact>
9+
<name>Miss Marcia Ebert Jr.</name>
10+
<contact type="email">mayert.zackary@example.net</contact>
1111
</user>
1212

1313
</value_directive>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<attribute>
33

4-
<user created_at="2025-09-05T02:18:14+00:00">
4+
<user created_at="2025-09-05T19:34:02+00:00">
55
<id>1</id>
6-
<name>Mr. Vincenzo Daugherty</name>
6+
<name>Dr. Rory Streich I</name>
77
</user>
8-
<user created_at="2025-09-05T02:18:14+00:00">
8+
<user created_at="2025-09-05T19:34:02+00:00">
99
<id>2</id>
10-
<name>Dolly Abernathy</name>
10+
<name>Dr. Nikko Oberbrunner</name>
1111
</user>
1212

1313
</attribute>

docs/snippets/advanced-element-header-footer.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33

44
<user>
55
<id>1</id>
6-
<name>Layla Wisoky PhD</name>
6+
<name>Ryann Effertz</name>
77
</user>
88
<user>
99
<id>2</id>
10-
<name>Pink Lang</name>
10+
<name>Emely Ziemann MD</name>
1111
</user>
1212

1313
</header_footer>

docs/snippets/advanced-element-info-before-false.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
<user>
88
<id>1</id>
9-
<name>Noe Ankunding</name>
9+
<name>Suzanne Stehr</name>
1010
</user>
1111
<user>
1212
<id>2</id>
13-
<name>Lucy Auer</name>
13+
<name>Buddy Cruickshank DDS</name>
1414
</user>
1515

1616
</info_method>

docs/snippets/advanced-element-info.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
<user>
88
<id>1</id>
9-
<name>Keith Jenkins</name>
9+
<name>Dejuan Schoen DDS</name>
1010
</user>
1111
<user>
1212
<id>2</id>
13-
<name>Brittany Heller IV</name>
13+
<name>Miss Delilah Hartmann</name>
1414
</user>
1515

1616
</info_method>

0 commit comments

Comments
 (0)