PHPackages                             cozy/contracts - 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. [PSR &amp; Standards](/categories/psr-standards)
4. /
5. cozy/contracts

ActiveLibrary[PSR &amp; Standards](/categories/psr-standards)

cozy/contracts
==============

Collection of handy Contracts

v0.2.1(2y ago)01.2k↓50%1MITPHPPHP ^7.4|^8

Since Mar 7Pushed 2y ago1 watchersCompare

[ Source](https://github.com/cozyphp/contracts)[ Packagist](https://packagist.org/packages/cozy/contracts)[ RSS](/packages/cozy-contracts/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (1)

Cozy Contracts
==============

[](#cozy-contracts)

[![Author](https://camo.githubusercontent.com/35e5c3d7cde3424f90a30013f8697e5923a797be2137f3af53e6ad7ec9ee17cf/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d406e70696361646f2d626c75652e737667)](https://github.com/npicado)[![Code Climate](https://camo.githubusercontent.com/8e1c0e9c35a4981480f44b30c92df020c1e4429399b59e4c240b011b360c8f86/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f636f7a797068702f636f6e7472616374732f6261646765732f6770612e737667)](https://codeclimate.com/github/cozyphp/contracts)[![Build](https://github.com/cozyphp/contracts/workflows/build/badge.svg)](https://github.com/cozyphp/contracts/actions?query=workflow%3A%22build%22)[![Code Climate issues](https://camo.githubusercontent.com/648fac938878312cacb135d37a2f2cf666d0d307340862c5850dc15ff6141aca/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6973737565732f636f7a797068702f636f6e747261637473)](https://codeclimate.com/github/cozyphp/contracts)[![Latest Stable Version](https://camo.githubusercontent.com/5c8c677ccf65d8f5e61dbbf748e6685836c02a173c6ef5fdb8c6dd55ae43baeb/68747470733a2f2f706f7365722e707567782e6f72672f636f7a792f636f6e7472616374732f76)](https://packagist.org/packages/cozy/contracts)[![Software License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](LICENSE)

Collection of handy PHP Contracts / Interfaces.

System Requirements
-------------------

[](#system-requirements)

You need **PHP &gt;= 7.4.0**, but the latest stable version of PHP is recommended.

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

[](#installation)

Install using Composer:

```
$ composer require cozy/contracts

```

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

[](#contributing)

Contributions are welcome and will be fully credited. Please see [CONTRIBUTING](.github/CONTRIBUTING.md) and [CODE OF CONDUCT](CODE_OF_CONDUCT.md) for details.

Security
--------

[](#security)

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

Credits
-------

[](#credits)

- [Nestor Picado](https://github.com/npicado)
- [All Contributors](https://github.com/cozyphp/contracts/graphs/contributors)

License
-------

[](#license)

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

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity44

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

Total

2

Last Release

808d ago

PHP version history (2 changes)v0.1.0PHP ^7.4|^8.0

v0.2.1PHP ^7.4|^8

### Community

Maintainers

![](https://www.gravatar.com/avatar/145852955a1d7c1e2bb9f22179c9bfe7466158730e42dc370ae04a81266415c4?d=identicon)[npicado](/maintainers/npicado)

---

Top Contributors

[![npicado](https://avatars.githubusercontent.com/u/1474761?v=4)](https://github.com/npicado "npicado (28 commits)")

---

Tags

interfacescontracts

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/cozy-contracts/health.svg)

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

###  Alternatives

[symfony/translation-contracts

Generic abstractions related to translation

2.6k698.7M432](/packages/symfony-translation-contracts)[symfony/contracts

A set of abstractions extracted out of the Symfony components

3.9k64.6M103](/packages/symfony-contracts)[dragon-code/contracts

A set of contracts for any project

108.8M37](/packages/dragon-code-contracts)

PHPackages © 2026

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