Skip to content
This repository has been archived by the owner on May 24, 2018. It is now read-only.

Latest commit

 

History

History
23 lines (14 loc) · 786 Bytes

zend.feed.consuming-atom-single.rst

File metadata and controls

23 lines (14 loc) · 786 Bytes

Consuming a Single Atom Entry

Single Atom <entry> elements are also valid by themselves. Usually the URL for an entry is the feed's URL followed by /<entryId>, such as http://atom.example.com/feed/1, using the example URL we used above. This pattern may exist for some web services which use Atom as a container syntax.

If you read a single entry, you will have a Zend\Feed\Reader\Entry\Atom object.

Reading a Single-Entry Atom Feed

$entry = Zend\Feed\Reader\Reader::import('http://atom.example.com/feed/1');
echo 'Entry title: ' . $entry->getTitle();