テスト済み

諏訪子 <suwako@076.moe>、2026-05-06 04:11
コミット ca9e2f8b1d41d63902deff6ebdc89eeca04ddc94 ・親 18fe403 ・ファイルを見る

7個のファイル、+18 -17

変更 CHANGELOG.md
@@ -1,5 +1,6 @@
11 # 0.5 (2026年??月??日)
22 * OpenProviderライブラリ
3+* PHP 8.5以上が必須になった
34
45 # ローリング・リリース (2025年01月01日)
56 * 最初プライベートリリース
変更 README-JP.md
@@ -7,7 +7,7 @@
77 サンプル:[https://lbdemo.technicalsuwako.moe/](https://lbdemo.technicalsuwako.moe/)
88
99 ## Little Beast とは?
10-Little Beast は PHP 8.3 以上向けのフレームワークで、076.moe(ゲーム開発会社)と technicalsuwako.moe(社長のブログ)向けに作られました。\
10+Little Beast は PHP 8.5 以上向けのフレームワークで、076.moe(ゲーム開発会社)と technicalsuwako.moe(社長のブログ)向けに作られました。\
1111 メイン考え方は「必要な物だけ拡張し、不要な物は削除する」です。\
1212 各コア機能はライブラリに分割されている為、必要な物だけを選び易い設計になっています。\
1313 全てのモジュールはゼロから書かれており、データベースは一切必要ありません。
@@ -68,9 +68,9 @@
6868
6969 ### OpenBSD サーバー
7070 ```sh
71-pkg_add php-8.4.14 php-gmp-8.4.14
72-rcctl enable php84_fpm httpd relayd
73-rcctl start php84_fpm httpd relayd
71+pkg_add php-8.5.5 php-gmp-8.5.5
72+rcctl enable php85_fpm httpd relayd
73+rcctl start php85_fpm httpd relayd
7474 ```
7575
7676 #### httpd
変更 README.md
@@ -7,7 +7,7 @@
77 Demo installation: [https://lbdemo.technicalsuwako.moe/](https://lbdemo.technicalsuwako.moe/)
88
99 ## What is Little Beast?
10-Little Beast is a PHP 8.3 or above framework made for 076.moe (game developer company) and technicalsuwako.moe (CEO's blog).\
10+Little Beast is a PHP 8.5 or above framework made for 076.moe (game developer company) and technicalsuwako.moe (CEO's blog).\
1111 The core mentality is to extend what you need, and remove what you don't need.\
1212 Each core feature is split into libraries, so it is easy to choose what you need.\
1313 All modules are written from scratch, nothing is to be require a database.
@@ -68,9 +68,9 @@
6868
6969 ### OpenBSD server
7070 ```sh
71-pkg_add php-8.4.14 php-gmp-8.4.14
72-rcctl enable php84_fpm httpd relayd
73-rcctl start php84_fpm httpd relayd
71+pkg_add php-8.5.5 php-gmp-8.5.5
72+rcctl enable php85_fpm httpd relayd
73+rcctl start php85_fpm httpd relayd
7474 ```
7575
7676 #### httpd
変更 route.php
@@ -66,7 +66,7 @@
6666 ];
6767
6868 if (ACTIVITYPUB_ENABLED) {
69- $routes[] = Route::add('GET', '.well-known/webfinger', Home::class.'@apfinger');
69+ $routes[] = Route::add('GET', '.well-known/webfinger', Fediverse::class.'@apfinger');
7070 $routes[] = Route::add('GET', 'ap/following', Fediverse::class.'@apfollowing');
7171 $routes[] = Route::add('GET', 'ap/followers', Fediverse::class.'@apfollowers');
7272 $routes[] = Route::add('GET', 'ap/outbox', Fediverse::class.'@apoutbox');
@@ -39,7 +39,7 @@
3939
4040 use Std\Lib\Curl;
4141 use LogType;
42-use Uri\Rfc3986;
42+use Uri\Rfc3986\Uri;
4343
4444 /**
4545 * ActivityPubプロトコルの実装クラス
@@ -299,14 +299,14 @@
299299 */
300300 public function getWebfinger(): string {
301301 if (!ACTIVITYPUB_ENABLED) return '';
302- $domain = str_replace(['http://', 'https://'], '', $this->domain);
302+ $uri = new Uri($this->domain);
303303 $webfinger = [
304- 'subject' => "acct:{$this->actor}@{$domain}",
304+ 'subject' => "acct:{$this->actor}@{$uri->getHost()}",
305305 'links' => [
306306 [
307307 'rel' => 'self',
308308 'type' => 'application/activity+json',
309- 'href' => "{$domain}/ap/actor",
309+ 'href' => "{$this->domain}/ap/actor",
310310 ],
311311 ],
312312 ];
@@ -38,7 +38,7 @@
3838 namespace Std\Lib;
3939
4040 use Result;
41-use Uri\Rfc3986;
41+use Uri\Rfc3986\Uri;
4242
4343 /**
4444 * php_curlへの依存を排除するための独自のCURL実装
@@ -365,7 +365,7 @@
365365 $port = $uri->getPort() ?? ($scheme === 'https' ? 443 : 80);
366366 $path = $uri->getPath();
367367 if ($path === '') $path = '/';
368- if (isset($uri->getQuery())) {
368+ if (NULL !== $uri->getQuery()) {
369369 $path .= '?'.$uri->getQuery();
370370 }
371371
@@ -639,7 +639,7 @@
639639 if ($redirectUrl[0] === '/') {
640640 $uri = new Uri($currentUrl);
641641 $redirectUrl = $uri->getScheme().'://'.$uri->getHost()
642- .(isset($uri->getPort()) ? ':'.$uri->getPort() : '')
642+ .(NULL !== $uri->getPort() ? ':'.$uri->getPort() : '')
643643 .$redirectUrl;
644644 } else {
645645 $redirectUrl = dirname($currentUrl).'/'.$redirectUrl;
@@ -20,7 +20,7 @@
2020 {@ endif @}
2121 {@ endif @}
2222 <meta name="description" content="{{ $description }}" />
23- <meta name="keywords" content="{{ SITEINFO['tags'].(isset($meta->category) ? ',' : '') }}{@ if (isset($meta) && isset($meta->category)) @}{@ foreach ($meta->category as $k => $cat) @}{{ $cat.($k === array_last($meta->category) ? '' : ',') }}{@ endforeach @}{@ endif @}" />
23+ <meta name="keywords" content="{{ SITEINFO['tags'].(isset($meta->category) ? ','.implode(',', $meta->category) : '') }}" />
2424
2525 <meta property="og:title" content="{{ SITEINFO['title'] }}: {{ $pagetit }}" />
2626 <meta property="og:description" content="{{ $description }}" />