Skip to content

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
tomas-novotny committed May 25, 2023
1 parent 181a6b7 commit 9e4ea0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
12 changes: 4 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# XML reader / writer

**Created as part of [inspishop][link-inspishop] e-commerce platform by [inspirum][link-inspirum] team.**

[![Latest Stable Version][ico-packagist-stable]][link-packagist-stable]
[![Build Status][ico-workflow]][link-workflow]
[![Coverage Status][ico-scrutinizer]][link-scrutinizer]
Expand Down Expand Up @@ -38,11 +36,11 @@ $rss = $xml->addElement('rss', [

$channel = $rss->addElement('channel');
$channel->addTextElement('title', 'Google Merchant');
$channel->addTextElement('link', 'https://www.inspishop.cz');
$channel->addTextElement('link', 'https://www.exampl.com');
$channel->addTextElement('description', 'Google Merchant products feed');
$channel->addTextElement('language', $locale);
$channel->addTextElement('lastBuildDate', (new \DateTime())->format('D, d M y H:i:s O'));
$channel->addTextElement('generator', 'Inspishop');
$channel->addTextElement('generator', 'Eshop');

foreach ($products as $product) {
$item = $xml->createElement('item');
Expand Down Expand Up @@ -98,11 +96,11 @@ var_dump($xml->toString(true));
<rss version="2.0" xmlns:g="http://base.google.com/ns/1.0">
<channel>
<title>Google Merchant</title>
<link>https://www.inspishop.cz</link>
<link>https://www.example.com</link>
<description>Google Merchant products feed</description>
<language>cs</language>
<lastBuildDate>Sat, 14 Nov 20 08:00:00 +0200</lastBuildDate>
<generator>Inspishop</generator>
<generator>Eshop</generator>
<item>
<g:id>0001</g:id>
<title><![CDATA[Sample products #1 A&B]]></title>
Expand Down Expand Up @@ -673,8 +671,6 @@ The MIT License (MIT). Please see [License File][link-licence] for more informat
[link-workflow]: https://github.com/inspirum/xml-php/actions
[link-scrutinizer]: https://scrutinizer-ci.com/g/inspirum/xml-php/code-structure
[link-code-quality]: https://scrutinizer-ci.com/g/inspirum/xml-php
[link-inspishop]: https://www.inspishop.cz/
[link-inspirum]: https://www.inspirum.cz/
[link-packagist-stable]: https://packagist.org/packages/inspirum/xml
[link-packagist-download]: https://packagist.org/packages/inspirum/xml/stats
[link-phpstan]: https://github.com/phpstan/phpstan
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
"name": "inspirum/xml",
"description": "Simple XML writer and memory efficient XML reader with powerful xml-to-array cast",
"keywords": [
"inspirum",
"xml",
"xml-reader",
"xml-parser",
"xml-splitter",
"xml-writer",
"xml-builder",
"xml-to-array"
Expand Down

0 comments on commit 9e4ea0d

Please sign in to comment.