Skip to content
A very simple PHP app that stores twitter-like status updates in a sqlite database.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
.htaccess
LICENCE.md
README.md
config.php
functions.php
index.php
login.inc.php
microblog.css
postform.inc.php
single.inc.php
timeline.inc.php
twitter_api.php

README.md

Simple Microblog

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.

a screenshot of the microblog app

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

Installation

  • 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)

To Do

  • 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

Support my work

The app is provided for free, but if you'd like to support what I do, please consider tipping.

Gittip Flattr

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.