diff options
Diffstat (limited to 'vendor/fguillot/picofeed/docs/opml-export.markdown')
m--------- | vendor/fguillot/picofeed | 0 | ||||
-rw-r--r-- | vendor/fguillot/picofeed/docs/opml-export.markdown | 46 |
2 files changed, 46 insertions, 0 deletions
diff --git a/vendor/fguillot/picofeed b/vendor/fguillot/picofeed deleted file mode 160000 -Subproject 0a1d0d3950f7f047dc8fb1d80aa6296e15f306d diff --git a/vendor/fguillot/picofeed/docs/opml-export.markdown b/vendor/fguillot/picofeed/docs/opml-export.markdown new file mode 100644 index 000000000..bd4f0b04b --- /dev/null +++ b/vendor/fguillot/picofeed/docs/opml-export.markdown @@ -0,0 +1,46 @@ +OPML export +=========== + +Example with no categories +-------------------------- + +```php +use PicoFeed\Serialization\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\Serialization\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 |