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
- Host: GitHub
- URL: https://github.com/lmzdev/nanoblog-php
- Owner: lmzdev
- License: mit
- Created: 2020-11-30T23:17:08.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2020-12-01T16:21:52.000Z (over 5 years ago)
- Last Synced: 2025-03-25T23:28:54.227Z (about 1 year ago)
- Topics: boilerplate, microblog, microblogging, nanoblog, php, sqlite, sqlite3
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 ?>