I’m looking for a way to easily package and distribute a module that would pull content from my site and display it like a feed on another site.
Ideally I would build a module that the dev could easily implement into their site.
It would work similarly to how the feed modules work for twitter. For reference, this is the site http://doingnotplanning.com/main.php
The site is built without a framework in PHP and MySQL
My question is what is the recommended way to do this? RSS? XML? some other way where the remote site wouldn’t have to access the DB directly?
You should create a web service, then make your module as an implementation of that web service. I’d suggest using a RESTful architecture with JSON output since that would make it easily queried and captured by a very large number of languages.