PHPackages                             ticaje/design-by-contract - 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. ticaje/design-by-contract

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

ticaje/design-by-contract
=========================

DbC compliant Library

2.0.0(1y ago)04198OSL-3.0PHPPHP ^7.0 || ^8.0CI failing

Since Apr 11Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/ticaje/design-by-contract)[ Packagist](https://packagist.org/packages/ticaje/design-by-contract)[ RSS](/packages/ticaje-design-by-contract/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependencies (5)Versions (17)Used By (8)

Design by Contract compliant library
====================================

[](#design-by-contract-compliant-library)

This library is sort of standard to start working with DbC patterns
-------------------------------------------------------------------

[](#this-library-is-sort-of-standard-to-start-working-with-dbc-patterns)

[![GPLv3 License](https://camo.githubusercontent.com/19f3b8cdb6c4ca7671e1af3240e94eb087c2b0c1181a3357d8381af53c9d40cb/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d47504c76332d6d6172626c652e737667)](https://www.gnu.org/licenses/gpl-3.0.en.html)[![Latest Version on Packagist](https://camo.githubusercontent.com/77b52e993522bc21d4d4e500673d510fe67e3dcceae37b12618775d8a73ac1ad/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746963616a652f64657369676e2d62792d636f6e74726163742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ticaje/design-by-contract)[![Quality Score](https://camo.githubusercontent.com/a52136b23fc347305031d23188e40589ae4ac4b2fad43263606db6a0465e367e/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f746963616a652f64657369676e2d62792d636f6e74726163742e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/ticaje/design-by-contract)[![Total Downloads](https://camo.githubusercontent.com/c37a8e00283821c8f6e1636bdbf58a0e035e1ddf062b02ff5ee201d54e91a9f5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746963616a652f64657369676e2d62792d636f6e74726163742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ticaje/design-by-contract)[![Author](https://camo.githubusercontent.com/3c3154e7d1e6e1d3c45389165493e28fc0279eced5a2b180bc66058f847196ff/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f48424c61746572616c2e636f6d2d2532333032313133613f7374796c653d6c6162656c436f6c6f723d6c6967687467726579)](https://hblateral.com)

Preface
-------

[](#preface)

This library is sort of standard to start working with DbC patterns

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

[](#installation)

You can install this package using composer(the only way i recommend)

```
composer require ticaje/design-by-contract
```

Features
--------

[](#features)

I will be posting documentation as the project grows older.

Credits
-------

[](#credits)

- [Héctor Luis Barrientos](https://github.com/ticaje)
- [All Contributors](../../contributors)

License
-------

[](#license)

The GNU General Public License (GPLv3). Please see [License File](LICENSE.md) for more information.

###  Health Score

42

—

FairBetter than 89% of packages

Maintenance62

Regular maintenance activity

Popularity12

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

Recently: every ~344 days

Total

16

Last Release

452d ago

Major Versions

1.1.4 → 2.0.02025-03-27

PHP version history (3 changes)1.0.0PHP ^7.1

1.1.2PHP ^7.0

2.0.0PHP ^7.0 || ^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1042962?v=4)[Hector Luis Barrientos](/maintainers/ticaje)[@ticaje](https://github.com/ticaje)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ticaje-design-by-contract/health.svg)

```
[![Health](https://phpackages.com/badges/ticaje-design-by-contract/health.svg)](https://phpackages.com/packages/ticaje-design-by-contract)
```

PHPackages © 2026

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