An open API service indexing awesome lists of open source software.

https://github.com/lmzdev/nanoblog-php

Simple nanoblogging boilerplate based on PHP and SQLite
https://github.com/lmzdev/nanoblog-php

boilerplate microblog microblogging nanoblog php sqlite sqlite3

Last synced: 17 days ago
JSON representation

Simple nanoblogging boilerplate based on PHP and SQLite

Awesome Lists containing this project

README

          

# nanoblog-php
PHP Boilerplate for storing Text/Timestamp entries in a SQLite Database.

### Introduction
I needed a dead-simple solution for storing status updates without any additional setup. Also, my website resides on a shared hosting plan where only PHP is available.

The solutions i found where either too static or too bloated to my liking, so i came up with my own. But beware: As of now i guess this Project only qualifies as a collection of code snippets or a boilerplate at best.

If you are looking for a more refined microblogging solution, take a look at [oelna/microblog](https://github.com/oelna/microblog).

### Usage
1. Copy ```nanoblog.php``` to your webspace.
1. Include with ``` ``` and directly use the php functions
1. or use the HTTP API. However, only insertion and deletion are available.

#### Add Entry
* Use ```db_insert``` function
* or do a HTTP POST Request and include _add_ and _secret_ parameters, eg. ```add=&secret=```

#### Remove Entry
* Remove **latest** entry with ```db_delete_latest``` function
* or do a HTTP POST Request and include _delete_ and _secret_ parameters, eg. ```delete&secret=```

### Hints
I included ```nanoblog.php``` into my ```index.php``` and did the following to display a list of Posts:
```php


= $datetime ?>

= $post ?>