Skip to content

A tiny php function to get a atom/rss feed and create an array with all the content (less than 70 lines)

Notifications You must be signed in to change notification settings

janus57/feed2array

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

feed2array

A tiny php function to get a atom/rss feed and create an array with all the content (less than 70 lines)

$content=feed2array($feed,$load);

$feed is the feed's url (if $load=true) or the $feed content (if $load=false):

If you want to load the feed with your own function, use $load=false and put the loaded content in $feed, like below.

$txtcontent=my_own_file_get_contents('url'); $content=feed2array($txtcontent,false);

But you can simply put the following line: $content=feed2array('url');

Enjoy !

About

A tiny php function to get a atom/rss feed and create an array with all the content (less than 70 lines)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages

  • PHP 100.0%