PHPackages                             phpdot/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. phpdot/contracts

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

phpdot/contracts
================

Shared interfaces for the PHPdot ecosystem

v1.12.0(3w ago)014418MITPHPPHP &gt;=8.4

Since Apr 16Pushed 2mo agoCompare

[ Source](https://github.com/phpdot/contracts)[ Packagist](https://packagist.org/packages/phpdot/contracts)[ RSS](/packages/phpdot-contracts/feed)WikiDiscussions main Synced 3w ago

READMEChangelogDependencies (3)Versions (17)Used By (18)

phpdot/contracts
================

[](#phpdotcontracts)

Shared interfaces for the PHPdot framework

Implementation packages implement these interfaces; consumer packages type-hint against them. An implementation can be swapped without changing any consumer code, and packages never depend on each other's internals. Concrete classes and value objects live in the implementation packages, never here.

Domains
-------

[](#domains)

- **[Logs](https://github.com/phpdot/logs)** — `TracerInterface`, `SpanInterface`, `SpanContextInterface`, `ScopeManagerInterface`, `WriterInterface`, `FormatterInterface`
- **[Session](https://github.com/phpdot/session)** — `SessionInterface`, `SessionHandlerInterface`, `SerializerInterface`
- **[Container](https://github.com/phpdot/container)** — `ContextInterface`, `ContextProviderInterface`, `ContextDestroyInterface`
- **[Server](https://github.com/phpdot/server-swoole)** — `ServerInterface`, `SseHandlerInterface`, `WebSocketHandlerInterface`
- **[Pool](https://github.com/phpdot/pool)** — `ConnectorInterface`
- **[I18n](https://github.com/phpdot/i18n)** — `MessageTranslatorInterface`

Requirements
------------

[](#requirements)

- PHP &gt;= 8.4

License
-------

[](#license)

MIT

###  Health Score

47

—

FairBetter than 93% of packages

Maintenance89

Actively maintained with recent releases

Popularity15

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity60

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

Total

16

Last Release

23d ago

Major Versions

v1.6.0 → v2.0.02026-05-07

PHP version history (2 changes)v1.0.0PHP &gt;=8.3

v1.9.0PHP &gt;=8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/62e82421bda4b5d6ba9a47ba6d88caca060dcd0d1a2862f351f3a97657385db0?d=identicon)[phpdot](/maintainers/phpdot)

---

Top Contributors

[![phpdot](https://avatars.githubusercontent.com/u/252500?v=4)](https://github.com/phpdot "phpdot (9 commits)")

### Embed Badge

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

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

###  Alternatives

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.2k543.5M2.7k](/packages/aws-aws-sdk-php)[cakephp/cakephp

The CakePHP framework

8.8k19.5M1.8k](/packages/cakephp-cakephp)[bref/bref

Bref is a framework to write and deploy serverless PHP applications on AWS Lambda.

3.4k10.6M68](/packages/bref-bref)[typo3/cms

TYPO3 CMS is a free open source Content Management Framework initially created by Kasper Skaarhoj and licensed under GNU/GPL.

1.2k1.9M122](/packages/typo3-cms)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k46](/packages/neuron-core-neuron-ai)[typo3/cms-core

TYPO3 CMS Core

3713.2M5.2k](/packages/typo3-cms-core)

PHPackages © 2026

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