PHPackages                             simplebbs/simple-bbs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. simplebbs/simple-bbs

ActiveLibrary

simplebbs/simple-bbs
====================

SQLiteベースのシンプルなボード・スレッド構成BBS

v0.1.3(7mo ago)02.2k[5 PRs](https://github.com/kobitworks/simpleBBS/pulls)PHPPHP &gt;=8.1

Since Oct 1Pushed 7mo agoCompare

[ Source](https://github.com/kobitworks/simpleBBS)[ Packagist](https://packagist.org/packages/simplebbs/simple-bbs)[ RSS](/packages/simplebbs-simple-bbs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (25)Used By (0)

simpleBBS
=========

[](#simplebbs)

SQLite ベースのシンプルな BBS です。ボード(掲示板)とスレッド(投稿の連なり)を扱うための最小限のクラスだけで構成されています。ボードごとに SQLite のデータベースファイルを分けて保存するため、小規模な掲示板を手軽に設置できます。

インストール
------

[](#インストール)

```
composer require simplebbs/simple-bbs

```

セットアップ
------

[](#セットアップ)

1. Web ルートを `vendor/simplebbs/simple-bbs/public` に向けるか、`public/` ディレクトリの内容を任意の公開ディレクトリへ配置します。
2. `.storage/` ディレクトリを書き込み可能にするか、環境変数 `STORAGE_PATH` (または `.env` の `STORAGE_PATH`) で保存先を指定します。
3. ブラウザでアクセスすると、ボード作成からスレッド・投稿まで利用できます。

`public/index.php` では `SimpleBBS\Application` を生成し、HTTP リクエストを処理します。

クラス概要
-----

[](#クラス概要)

- `SimpleBBS\SimpleBBS`
    - ボード一覧・詳細、スレッド一覧・詳細、スレッド作成、投稿追加・編集を提供します。
- `SimpleBBS\Admin`
    - ボードの新規作成・更新・削除など管理向けの操作を提供します。
- `SimpleBBS\Application`
    - クエリパラメータ `route` に基づいて画面を切り替え、Twig テンプレートを描画します。

例: PHP からの直接利用
--------------

[](#例-php-からの直接利用)

```
use SimpleBBS\Admin;
use SimpleBBS\SimpleBBS;

$storage = __DIR__ . '/bbs-data';
$admin = new Admin($storage);
$bbs = new SimpleBBS($storage);

// ボード作成
$board = $admin->createBoard('雑談', 'general', '自由な話題用ボード');

// スレッド作成
$threadId = $bbs->createThread($board['slug'], 'はじめまして', '管理人', 'よろしくお願いします。');

// 投稿追加
$bbs->addPost($board['slug'], $threadId, '名無しさん', 'こんにちは！');

// 投稿編集
$thread = $bbs->getThread($board['slug'], $threadId);
$firstPostId = $thread['posts'][0]['id'];
$bbs->updatePost($board['slug'], $threadId, $firstPostId, '管理人', '自己紹介スレッドです。');

```

`Application::create()` に `SimpleBBS` や `Admin` を渡すことで、Web アプリケーションと他システムで同じインスタンスを共有できます。

```
$app = Application::create($storage, viewsPath: __DIR__ . '/templates');
$app->handle();

```

必要条件
----

[](#必要条件)

- PHP 8.1 以上
- SQLite3 拡張
- Composer

ドキュメント
------

[](#ドキュメント)

アーキテクチャの詳細は `docs/architecture.md` を参照してください。

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance63

Regular maintenance activity

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 91.1% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

4

Last Release

228d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/59a777b78e15fff2eb53bf8c11782ef6408504d5f4dd02ed39b1e71a7e2d7857?d=identicon)[kobitworks](/maintainers/kobitworks)

---

Top Contributors

[![kobitworks](https://avatars.githubusercontent.com/u/83095878?v=4)](https://github.com/kobitworks "kobitworks (41 commits)")[![kazuhikoshinozaki-netizen](https://avatars.githubusercontent.com/u/229848265?v=4)](https://github.com/kazuhikoshinozaki-netizen "kazuhikoshinozaki-netizen (4 commits)")

### Embed Badge

![Health badge](/badges/simplebbs-simple-bbs/health.svg)

```
[![Health](https://phpackages.com/badges/simplebbs-simple-bbs/health.svg)](https://phpackages.com/packages/simplebbs-simple-bbs)
```

###  Alternatives

[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[abydahana/aksara

Aksara is a CodeIgniter based CRUD Toolkit you can use to build complex applications become shorter, secure and more reliable just in a few lines of code. Serving both CMS or Framework, produce both HEADLESS (RESTful API) or TRADITIONAL (Browser Based), just by writing single controller. Yet it's reusable, scalable and ready to use!

1101.2k](/packages/abydahana-aksara)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
