Convert an XML feed to a new Mastodon status.

I’ve been greatly enjoying a social media alternative called Mastodon.

For fun I’ve started on a PHP script to convert XML, RSS, and ATOM to a new Mastodon status.  While there are multiple libraries that can do this such as simplepie, it seemed like a good exercise to write one from scratch.

I currently have a test instance running on Ubuntu via the AWS free tier.  It’s a single PHP script run via cron daily.  No database or web server required.  Now when I log into Mastodon to see what the cool kids are doing I can also catch up on my favorite news feeds all in one place.  Similar to how some people use twitter.

When time permits I’ll add more functionality and possibly additional feeds.  Commits and comments welcome.

Source code: