{"id":22300443,"url":"https://github.com/lmzdev/nanoblog-php","last_synced_at":"2026-05-14T23:33:40.680Z","repository":{"id":89728551,"uuid":"317370114","full_name":"lmzdev/nanoblog-php","owner":"lmzdev","description":"Simple nanoblogging boilerplate based on PHP and SQLite","archived":false,"fork":false,"pushed_at":"2020-12-01T16:21:52.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-25T23:28:54.227Z","etag":null,"topics":["boilerplate","microblog","microblogging","nanoblog","php","sqlite","sqlite3"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lmzdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-30T23:17:08.000Z","updated_at":"2021-12-13T21:29:58.000Z","dependencies_parsed_at":null,"dependency_job_id":"9626cf92-dafc-4211-8125-a98a08f2e75c","html_url":"https://github.com/lmzdev/nanoblog-php","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/lmzdev/nanoblog-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmzdev%2Fnanoblog-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmzdev%2Fnanoblog-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmzdev%2Fnanoblog-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmzdev%2Fnanoblog-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lmzdev","download_url":"https://codeload.github.com/lmzdev/nanoblog-php/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lmzdev%2Fnanoblog-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272839664,"owners_count":25001862,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-30T02:00:09.474Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["boilerplate","microblog","microblogging","nanoblog","php","sqlite","sqlite3"],"created_at":"2024-12-03T18:10:58.707Z","updated_at":"2026-05-14T23:33:40.627Z","avatar_url":"https://github.com/lmzdev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nanoblog-php\nPHP Boilerplate for storing Text/Timestamp entries in a SQLite Database.\n\n### Introduction \nI 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.\n\nThe 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.\n\nIf you are looking for a more refined microblogging solution, take a look at [oelna/microblog](https://github.com/oelna/microblog). \n\n### Usage\n1. Copy ```nanoblog.php``` to your webspace.\n1. Include with ``` \u003c?php include('nanoblog.php') ?\u003e``` and directly use the php functions\n1. or use the HTTP API. However, only insertion and deletion are available.\n\n#### Add Entry\n* Use ```db_insert``` function\n* or do a HTTP POST Request and include _add_ and _secret_ parameters, eg. ```add=\u003cnewconent\u003e\u0026secret=\u003cmysecret\u003e```\n\n#### Remove Entry\n* Remove **latest** entry with ```db_delete_latest``` function\n* or do a HTTP POST Request and include _delete_ and _secret_ parameters, eg. ```delete\u0026secret=\u003cmysecret\u003e```\n\n### Hints\nI included ```nanoblog.php``` into my ```index.php``` and did the following to display a list of Posts:\n```php\n\u003c?php\n$posts = db_select_posts();\nif ($posts) {\n    foreach ($posts as $item) {\n        $datetime = strftime('%a., %d.%m.%Y - %H:%M', $item['post_timestamp']);\n        $post = $item[\"post_content\"]; ?\u003e\n        \u003carticle class=\"post\"\u003e\n            \u003cb class=\"date\"\u003e\u003c?= $datetime ?\u003e\u003c/b\u003e\u003cbr\u003e\n                \u003c?= $post ?\u003e\n        \u003c/article\u003e\n\u003c?php\n    }\n}\n\n```\n\nInsertion and removal is done through a JavaScript-Client which hits the HTTP Endpoints with ```XMLHttpRequest```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmzdev%2Fnanoblog-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flmzdev%2Fnanoblog-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flmzdev%2Fnanoblog-php/lists"}