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 today

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 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity43

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

2331d 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/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[symplify/monorepo-builder

Not only Composer tools to build a Monorepo.

5205.3M82](/packages/symplify-monorepo-builder)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

728272.9k17](/packages/civicrm-civicrm-core)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)[ec-cube/ec-cube

EC-CUBE EC open platform.

78527.0k1](/packages/ec-cube-ec-cube)

PHPackages © 2026

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