A very simple PHP app that stores twitter-like status updates in a sqlite database. It also generates a JSON feed, that can be used as a source for the micro.blog service. It is aimed at people who would like to host their own micro.blog, but want to avoid using Wordpress for it.
There is a timeline view of your own posts, as well as a simple 'compose post' page behind a login form. Right now, only a unique ID, the post content and creation timestamp are saved for each entry, so this is only suitable for one user. (Multiple users would each have to install in their own directories.)
The entire design is inside a single theme file microblog.css and can be modified easily. The site HTML is pretty straightforward and should be easy to style.
The app requires at least PHP 5.5 and was tested on 7.0. It needs mbstring, curl and sqlite modules. For crossposting to twitter, the app uses code from J7mbo/twitter-api-php
- Copy the files to a directory on your webserver
- edit config.php and adjust the settings if you like (at least set a new password!)
- for Apache: edit .htaccess and set
RewriteBase
to a path matching your installation directory - for nginx: have a rule similar to
try_files $uri $uri/ /index.php?$args;
for the microblog-location - optional: modify the theme file microblog.css
- optional: enable crossposting to twitter by filling in app credentials in config.php (instructions there)
- add a regular RSS or ATOM feed in addition to the JSON feed, for versatility and integration with other services and readers
- make interface adjustments to be able to delete status posts
- test whether the ping function actually works
- improve html rendering
The app is provided for free, but if you'd like to support what I do, please consider tipping.