Hi there PHP-FIG comunity! I hope that my search of this topic has been successful and i have not missed if this topic has been discussed before.
I was wondering what would you think about a standard for Feed Parser libraries. I think that most of them follow the same path, but there are some small differences that might get aligned if there is a standard. Bellow i have put a few lines of code of what it might look like interface FeedInterface extends Iterator, Countable { /** * Get a single author * * @param int $index * @return string|null */ public function getAuthor($index = 0); /** * Get an array with feed authors * * @return array */ public function getAuthors(); /** * Get the copyright entry * * @return string|null */ public function getCopyright(); /** * Get the feed creation date * * @return \DateTime|null */ public function getDateCreated(); /** * Get the feed modification date * * @return \DateTime|null */ public function getDateModified(); /** * Get the feed description * * @return string|null */ public function getDescription(); /** * Get the feed ID * * @return string|null */ public function getId(); /** * Get the feed language * * @return string|null */ public function getLanguage(); /** * Get a link to the HTML source * * @return string|null */ public function getLink(); /** * Get a link to the XML feed * * @return string|null */ public function getFeedLink(); /** * Get the feed title * * @return string|null */ public function getTitle(); } interface EntryInterface { /** * Get the specified author * * @param int $index * @return string|null */ public function getAuthor($index = 0); /** * Get an array with feed authors * * @return array */ public function getAuthors(); /** * Get the entry content * * @return string */ public function getContent(); /** * Get the entry creation date * * @return \DateTime */ public function getDateCreated(); /** * Get the entry modification date * * @return \DateTime */ public function getDateModified(); } -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscr...@googlegroups.com. To post to this group, send email to php-fig@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/01886717-f07b-4d17-b194-5c208255e4cc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.