PHPackages                             fob/formalbears - 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. fob/formalbears

Abandoned → [formal-bears/formal-bears](/?search=formal-bears%2Fformal-bears)Library[Utility &amp; Helpers](/categories/utility)

fob/formalbears
===============

0.2.1(6y ago)1461BSD-2-ClausePHPPHP &gt;=7.1.3CI failing

Since Dec 11Pushed 6y ago1 watchersCompare

[ Source](https://github.com/kumamidori/FormalBears)[ Packagist](https://packagist.org/packages/fob/formalbears)[ RSS](/packages/fob-formalbears/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (8)Versions (10)Used By (1)

DEPRECATED
==========

[](#deprecated)

\[Notice\] this package is abandoned and the recommended alternative is [formal-bears/formal-bears](https://github.com/kumamidori/FormalBears.FormalBears).

---

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

[](#formalbears)

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

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

Requires
--------

[](#requires)

PHP7.1以上

Install
-------

[](#install)

```
composer require fob/formalbears

```

機能
--

[](#機能)

- 設定ファイルによる設定（ `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

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity52

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 ~46 days

Recently: every ~89 days

Total

9

Last Release

2339d ago

PHP version history (3 changes)0.1.0PHP &gt;=7.0.8

0.1.3PHP &gt;=7.1.0

0.1.5PHP &gt;=7.1.3

### 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 (7 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/fob-formalbears/health.svg)

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

###  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.9k20](/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)
