PHPackages                             code-bushido/foundation - 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. code-bushido/foundation

ActiveLibrary

code-bushido/foundation
=======================

Bushido PHP Foundation

0.3.0(5y ago)12.1k1MITPHPPHP ^8.0

Since Nov 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/code-bushido/foundation)[ Packagist](https://packagist.org/packages/code-bushido/foundation)[ Docs](https://github.com/code-bushido/foundation)[ RSS](/packages/code-bushido-foundation/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (1)

Bushido PHP Foundation
======================

[](#bushido-php-foundation)

[![Latest Version on Packagist](https://camo.githubusercontent.com/a4fb746a13a66a9f6861f9a5bfefd5f165938c9bc92772b0209d1aa34482ffdb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f64652d6275736869646f2f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/code-bushido/foundation)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/74a55e2e0c209afe103c747a4c38236c72cde9818a13883af80f70471b8cc7c6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f636f64652d6275736869646f2f666f756e646174696f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/code-bushido/foundation)[![Coverage Status](https://camo.githubusercontent.com/4689272b1247aaa13c3232d88c2a9b03cd994a2dfdc4bb440a4e4ba2b835a157/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f636f7665726167652f672f636f64652d6275736869646f2f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/code-bushido/foundation/code-structure)[![Quality Score](https://camo.githubusercontent.com/d50e3a52c3aa34b66150a46c0980094d5756be6910045641007448deed2854c8/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f636f64652d6275736869646f2f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/code-bushido/foundation)[![Total Downloads](https://camo.githubusercontent.com/8beea42ef9a4f8736c94b4691f30f283af95465df68f04219f353bc862665031/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f64652d6275736869646f2f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/code-bushido/foundation)

This is where your description should go. Try and limit it to a paragraph or two, and maybe throw in a mention of what PSRs you support to avoid any confusion with users and contributors.

Install
-------

[](#install)

Via Composer

```
$ composer require code-bushido/foundation
```

Table of Contents
-----------------

[](#table-of-contents)

### Contracts

[](#contracts)

- [Arrayable](src/Contracts/Arrayable.php)
- [EntityInterface](src/Contracts/EntityInterface.php)
- [Indexable](src/Contracts/Indexable.php)
- [Jsonable](src/Contracts/Jsonable.php)
- [Makeable](src/Contracts/Makeable.php)
- [Persistable](src/Contracts/Persistable.php)

### Exceptions

[](#exceptions)

- [Exception](src/Exception.php)
- [InvalidArgumentException](src/Exceptions/InvalidArgumentException.php)

### Smart Entity

[](#smart-entity)

**Smart Entity** concept is a powerful implementation of getters and setters entity concept. [See more](doc/SmartEntity.md)

### Helpers

[](#helpers)

- [PsrLoggerTrait](src/Helpers/PsrLoggerTrait.php) - provides base support for optional PSR Logger Interface implementation

Change log
----------

[](#change-log)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Testing
-------

[](#testing)

```
$ composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security
--------

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Wojciech Nowicki](https://github.com/wnowicki)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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

Total

4

Last Release

1901d ago

PHP version history (2 changes)0.0.1PHP ~7.1

0.3.0PHP ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/130d2a3a039f00925395a3c2665077f39d038c45634fa0bb7b584c6b5928743a?d=identicon)[wnowicki](/maintainers/wnowicki)

---

Top Contributors

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

---

Tags

foundationcode-bushido

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/code-bushido-foundation/health.svg)

```
[![Health](https://phpackages.com/badges/code-bushido-foundation/health.svg)](https://phpackages.com/packages/code-bushido-foundation)
```

###  Alternatives

[api-platform/metadata

API Resource-oriented metadata attributes and factories

223.5M96](/packages/api-platform-metadata)[phpro/http-tools

HTTP tools for developing more consistent HTTP implementations.

28137.8k](/packages/phpro-http-tools)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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