PHPackages                             chimera/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. [API Development](/categories/api)
4. /
5. chimera/foundation

ActiveLibrary[API Development](/categories/api)

chimera/foundation
==================

Base structure to connect PSR-7 objects to command and query buses

0.4.0(5y ago)9283.1k↓29.4%2[8 PRs](https://github.com/chimeraphp/foundation/pulls)5MITPHPPHP ^7.4 || ^8.0

Since May 3Pushed 3mo ago2 watchersCompare

[ Source](https://github.com/chimeraphp/foundation)[ Packagist](https://packagist.org/packages/chimera/foundation)[ GitHub Sponsors](https://github.com/lcobucci)[ Patreon](https://www.patreon.com/lcobucci)[ RSS](/packages/chimera-foundation/feed)WikiDiscussions 1.0.x Synced 1mo ago

READMEChangelog (4)Dependencies (9)Versions (18)Used By (5)

Chimera - foundation
====================

[](#chimera---foundation)

[![Total Downloads](https://camo.githubusercontent.com/5d203c19652d4db03c2ea17c574d438f2796cfa2cd714790025d12275657bc0e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368696d6572612f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chimera/foundation)[![Latest Stable Version](https://camo.githubusercontent.com/ff57e85abda00075026f42aae1bd8abd9064c5623035db1c25ebe7a09dcf61d3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368696d6572612f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chimera/foundation)[![Unstable Version](https://camo.githubusercontent.com/c3504bb97a6132d06f08ae06bdb9470095b823e6787ea2cd2b07bf1dc24e7574/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f767072652f6368696d6572612f666f756e646174696f6e2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chimera/foundation)

[![Build Status](https://camo.githubusercontent.com/225ab017bdedf6fa0592c53ad5d799d3c84b4404c1a20900e23b3ca53ab221eb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6368696d6572617068702f666f756e646174696f6e2f706870756e69742e796d6c3f6272616e63683d312e302e78267374796c653d666c61742d737175617265)](https://github.com/chimeraphp/foundation/actions?query=workflow%3A%22PHPUnit%20Tests%22+branch%3A1.0.x)[![Code Coverage](https://camo.githubusercontent.com/8939ded94931dfc398b4740c4840edeac1a95cfd625e95e81dce2ca8e7379d72/68747470733a2f2f636f6465636f762e696f2f67682f6368696d6572617068702f666f756e646174696f6e2f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/chimeraphp/foundation)

> The term Chimera (*/kɪˈmɪərə/* or */kaɪˈmɪərə/*) has come to describe any mythical or fictional animal with parts taken from various animals, or to describe anything composed of very disparate parts, or perceived as wildly imaginative, implausible, or dazzling.

There are many many amazing libraries in the PHP community and with the creation and adoption of the PSRs we don't necessarily need to rely on full stack frameworks to create a complex and well designed software. Choosing which components to use and plugging them together can sometimes be a little challenging.

The goal of this set of packages is to make it easier to do that (without compromising the quality), allowing you to focus on the behaviour of your software.

This particular package provides **abstractions** and **default components**to standardise some basic concepts, creating a foundation to connect different libraries together without creating a huge monster.

Installation
------------

[](#installation)

You probably won't depend directly on this package, but it is available on [Packagist](http://packagist.org/packages/chimera/foundation), and can be installed using [Composer](http://getcomposer.org):

```
$ composer require chimera/foundation
```

### PHP Configuration

[](#php-configuration)

In order to make sure that we're dealing with the correct data, we're using `assert()`, which is a very interesting feature in PHP but not often used. The nice thing about `assert()` is that we can (and should) disable it in production mode so that we don't have useless statements.

So, for production mode, we recommend you to set `zend.assertions` to `-1` in your `php.ini`. For development, you should leave `zend.assertions` as `1` and set `assert.exception` to `1`, which will make PHP throw an [`AssertionError`](https://secure.php.net/manual/en/class.assertionerror.php)when things go wrong.

Check the documentation for more information:

Related packages
----------------

[](#related-packages)

- [`chimera/bus-tactician`](https://github.com/chimeraphp/bus-tactician): Adapter for the amazing [`league/tactician`](https://github.com/thephpleague/tactician)
- [`chimera/routing`](https://github.com/chimeraphp/routing): Abstractions and reusable request handlers (controllers) to handle HTTP requests
- [`chimera/routing-expressive`](https://github.com/chimeraphp/routing-expressive): Adapter for the great [`zendframework/zend-expressive`](https://github.com/zendframework/zend-expressive)
- [`chimera/serialization-jms`](https://github.com/chimeraphp/serialization-jms): Adapter for the really flexible [`jms/serializer`](https://github.com/schmittjoh/serializer)
- [`chimera/di-symfony`](https://github.com/chimeraphp/di-symfony): A set of compiler passes that plugs everything together while compiling the container, so that no unnecessary process is executed when the software is handling user requests
- [`chimera/sample`](https://github.com/chimeraphp/sample): A very basic application showing how to use this set of libraries
- [`chimera/sample-react`](https://github.com/chimeraphp/sample-react): A very basic application showing how to use this set of libraries (using ReactPHP)

License
-------

[](#license)

MIT, see [LICENSE](LICENSE).

###  Health Score

49

—

FairBetter than 95% of packages

Maintenance55

Moderate activity, may be stable

Popularity39

Limited adoption so far

Community22

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~405 days

Total

6

Last Release

1022d ago

Major Versions

0.4.x-dev → 1.0.x-dev2023-07-31

PHP version history (5 changes)0.1.0PHP ^7.2

0.2.0PHP ^7.2 || ^8.0

0.3.0PHP ^7.3 || ^8.0

0.4.0PHP ^7.4 || ^8.0

1.0.x-devPHP ~8.1.0 || ~8.2.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/201963?v=4)[Luís Cobucci](/maintainers/lcobucci)[@lcobucci](https://github.com/lcobucci)

---

Top Contributors

[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (303 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (229 commits)")[![lcobucci](https://avatars.githubusercontent.com/u/201963?v=4)](https://github.com/lcobucci "lcobucci (211 commits)")[![dependabot-preview[bot]](https://avatars.githubusercontent.com/in/2141?v=4)](https://github.com/dependabot-preview[bot] "dependabot-preview[bot] (209 commits)")[![renovate[bot]](https://avatars.githubusercontent.com/in/2740?v=4)](https://github.com/renovate[bot] "renovate[bot] (4 commits)")[![agustingomes](https://avatars.githubusercontent.com/u/15325886?v=4)](https://github.com/agustingomes "agustingomes (1 commits)")[![carusogabriel](https://avatars.githubusercontent.com/u/16328050?v=4)](https://github.com/carusogabriel "carusogabriel (1 commits)")

---

Tags

hacktoberfest

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

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

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

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[knuckleswtf/scribe

Generate API documentation for humans from your Laravel codebase.✍

2.3k12.2M45](/packages/knuckleswtf-scribe)[google/gax

Google API Core for PHP

265103.1M454](/packages/google-gax)[mpociot/laravel-apidoc-generator

Generate beautiful API documentation from your Laravel application

3.5k3.1M12](/packages/mpociot-laravel-apidoc-generator)[temporal/sdk

Temporal SDK

4002.2M18](/packages/temporal-sdk)[wheelpros/fitment-platform-api

Magento 2 (Open Source)

12.1k1.2k](/packages/wheelpros-fitment-platform-api)

PHPackages © 2026

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