summaryrefslogtreecommitdiffstats
path: root/vendor/fguillot/picofeed/docs/opml-export.markdown
diff options
context:
space:
mode:
authorBernhard Posselt <dev@bernhard-posselt.com>2014-11-07 12:32:05 +0100
committerBernhard Posselt <dev@bernhard-posselt.com>2014-11-07 12:32:05 +0100
commit7f81afd7efbeb931d16ce1f3a1ed53a54226d553 (patch)
tree180720cd96aa66ae8964f13734e090d4b82a178e /vendor/fguillot/picofeed/docs/opml-export.markdown
parenta6d6288e65aa416aca7535e81d9e8837c2cfb103 (diff)
move 3rdparty directory to vendor to be more consistent with composer standard and because we also use js/vendor for third party libs
Diffstat (limited to 'vendor/fguillot/picofeed/docs/opml-export.markdown')
-rw-r--r--vendor/fguillot/picofeed/docs/opml-export.markdown46
1 files changed, 46 insertions, 0 deletions
diff --git a/vendor/fguillot/picofeed/docs/opml-export.markdown b/vendor/fguillot/picofeed/docs/opml-export.markdown
new file mode 100644
index 000000000..4d7cf8db0
--- /dev/null
+++ b/vendor/fguillot/picofeed/docs/opml-export.markdown
@@ -0,0 +1,46 @@
+OPML export
+===========
+
+Example with no categories
+--------------------------
+
+```php
+use PicoFeed\Export;
+
+$feeds = array(
+ array(
+ 'title' => 'Site title',
+ 'description' => 'Optional description',
+ 'site_url' => 'http://petitcodeur.fr/',
+ 'site_feed' => 'http://petitcodeur.fr/feed.xml'
+ )
+);
+
+$export = new Export($feeds);
+$opml = $export->execute();
+
+echo $opml; // XML content
+```
+
+Example with categories
+-----------------------
+
+```php
+use PicoFeed\Export;
+
+$feeds = array(
+ 'my category' => array(
+ array(
+ 'title' => 'Site title',
+ 'description' => 'Optional description',
+ 'site_url' => 'http://petitcodeur.fr/',
+ 'site_feed' => 'http://petitcodeur.fr/feed.xml'
+ )
+ )
+);
+
+$export = new Export($feeds);
+$opml = $export->execute();
+
+echo $opml; // XML content
+``` \ No newline at end of file