PHPackages                             formal-bears/formal-bears - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. formal-bears/formal-bears

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

formal-bears/formal-bears
=========================

0.3.1(6y ago)0321BSD-2-ClausePHPPHP &gt;=7.2.0CI failing

Since Dec 16Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kumamidori/FormalBears.FormalBears)[ Packagist](https://packagist.org/packages/formal-bears/formal-bears)[ RSS](/packages/formal-bears-formal-bears/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (8)Versions (3)Used By (0)

FormalBears
===========

[](#formalbears)

Meta framwork for [BEAR.Sunday](https://github.com/bearsunday/BEAR.Sunday) applications

[formal-bears/formal-bears](https://packagist.org/packages/formal-bears/formal-bears)

- [@iteman (KUBO Atuhiro)](https://github.com/iteman) さんによるメタフレームワーク `FormalBears` をコピー、改変して作りました（著者の承諾を得て公開しています）。
- オリジナル版（本家のリポジトリ）は限定公開です。著者による紹介のスライドが [こちら](https://www.slideshare.net/iteman/the-birth-of-formalbears) で公開されています。

Requires
--------

[](#requires)

PHP7.2以上

Install
-------

[](#install)

```
composer require formal-bears/formal-bears:^0.3

```

機能
--

[](#機能)

- 設定ファイルによる設定（ `YAML` ）とグラマー定義を通したコンパイル機能（ `symfony/config` 統合）
- 設定のマージ（デフォルト値の設定、development / production といった環境毎のオーバーライド）
- 環境変数統合
- マルチバインディング (ref. [Multibindings · google/guice](https://github.com/google/guice/wiki/Multibindings) )

Application Directories
-----------------------

[](#application-directories)

アプリケーションパッケージはルートレベルのディレクトリとして下記ディレクトリを必要とします。

Subjectit MUST be named:configuration files`etc/config/``config` ディレクトリは下記のサブディレクトリを必要とします。

```
[config]
   |
   +--- [contexts] コンテキストグローバルの設定
   +--- [modules] 各モジュールの設定

```

たとえば下記のように使います。

```
[config]
   |
   +--- [contexts] コンテキストグローバル設定
            |
            +--- app.yml
            +--- api.yml
            +--- cli.yml
            +--- prod.yml

   +--- [modules] 各モジュールの設定
            |
            [my_project_foo] MyProjectFooModule に対応する設定ルートディレクトリ
                |
                +--- [app]
                        |
                        +--- my_project_foo.yaml
                +--- [prod]
                        |
                        +--- my_project_foo.yaml

```

上記のように設定すれば、prod の環境では `app` の設定に `prod` のオーバーライド設定をマージさせることができます。

Links
-----

[](#links)

- [kumamidori/FormalBearsDemo](https://github.com/kumamidori/FormalBearsDemo)
- [\[FormalBears\] Configurable BEAR.Sunday - Qiita](https://qiita.com/kumamidori/items/53f3a271e3de70c5abf4)

TODO
----

[](#todo)

- 環境変数統合のサンプルアプリケーション追加
- テスト
- CI
- CS

Copyright
---------

[](#copyright)

Copyright (c) 2019 Atsuhiro Kubo, Nana Yamane, All rights reserved.

License
-------

[](#license)

[The BSD 2-Clause License](http://opensource.org/licenses/BSD-2-Clause)

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~5 days

Total

2

Last Release

2387d ago

PHP version history (2 changes)0.3.0PHP &gt;=7.1.3

0.3.1PHP &gt;=7.2.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/2bd3464c256b95bb842a82ef692328939e24a91c7be6acb04cdbef1d49d89b44?d=identicon)[kumamidori](/maintainers/kumamidori)

---

Top Contributors

[![kumamidori](https://avatars.githubusercontent.com/u/384567?v=4)](https://github.com/kumamidori "kumamidori (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/formal-bears-formal-bears/health.svg)

```
[![Health](https://phpackages.com/badges/formal-bears-formal-bears/health.svg)](https://phpackages.com/packages/formal-bears-formal-bears)
```

###  Alternatives

[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M574](/packages/shopware-core)[jolicode/castor

A lightweight and modern task runner. Automate everything. In PHP.

54743.1k4](/packages/jolicode-castor)[friendsoftypo3/content-blocks

TYPO3 CMS Content Blocks - Content Types API | Define reusable components via YAML

103519.9k53](/packages/friendsoftypo3-content-blocks)[chameleon-system/chameleon-base

The Chameleon System core.

1028.6k5](/packages/chameleon-system-chameleon-base)[aeliot/todo-registrar

Register TODOs from source code in issue tracker

153.0k](/packages/aeliot-todo-registrar)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1616.4k13](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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