PHPackages                             gamernetwork/yolk-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. [Framework](/categories/framework)
4. /
5. gamernetwork/yolk-contracts

AbandonedArchivedLibrary[Framework](/categories/framework)

gamernetwork/yolk-contracts
===========================

Gamer Network's interface library

v1.0(10y ago)08.6k16MITPHPPHP &gt;=5.4.0

Since Jul 20Pushed 9y ago9 watchersCompare

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

READMEChangelogDependenciesVersions (3)Used By (6)

Want to work for Gamer Network? [We are hiring!](http://www.gamesindustry.biz/jobs/gamer-network)

Yolk Contracts
==============

[](#yolk-contracts)

Introduction
------------

[](#introduction)

This package defines the interfaces and traits for the core services used throughout the Yolk framework. e.g. `yolk\contracts\database\DatabaseConnection`defines the contract for accessing a database, while the `yolk\contracts\support\collections\Dictionary` contract defines methods for operating on a collection of key/value pairs.

Each directory corresponds to a Yolk package that provides implementations of the interfaces defined in that directory. For example, the `gamernetwork/yolk-log`package contains implementions of `yolk\contracts\log\Logger`.

Why Contracts?
--------------

[](#why-contracts)

A separate contracts package provides two primary benefits:

- A quick reference point for all available contracts.
- A single, decoupled package that promotes loose-coupling by separating interfaces from implementations.

### Quick Reference

[](#quick-reference)

Having all of the framework's services neatly defined within interfaces provides succinct documentation to available features.

Rather than tracking down which methods are available within a large, complicated class, you can refer to a simpler, cleaner interface.

### Loose Coupling

[](#loose-coupling)

[Wikipedia Reference](https://en.wikipedia.org/wiki/Loose_coupling)

Yolk packages provide default and usually basic implementations of each contract, that sometimes might not be sufficient or quite right for a particular project.

By specifying contracts, code is no longer coupled to these specific implementations and you may easily write alternatives that better suit your project.

Likewise, you can switch between implementations without modifying any consuming code. The classic example being able to switch caching backends (e.g. Memory/Redis/Memcache) without modifying any code that uses the cache.

Naming Conventions
------------------

[](#naming-conventions)

Interfaces in this package are named in one of two ways:

- As a singular noun (e.g. `Dictionary`, `DatabaseConnection`, `Filter`)
- As a noun or verb suffixed with "-able" (e.g. `Arrayable`, `Runnable`)

The implementations of those interfaces with in Yolk components are usually prefixed with "Base-", although there are some variations - in particular some implementations still use the deprecated prefix "Generic-".

- `Request` ➡ `BaseRequest`
- `Response` ➡ `BaseResponse`
- `DatabaseConnection` ➡ `BaseConnection`
- `ConnectionManager` ➡ `GenericConnectionManager`
- `Profiler` ➡ `GenericProfiler`

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity59

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

Unknown

Total

1

Last Release

3946d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2658e540902cbc1f59ec171e1b74515fb9e7c3a1e194e37e9c37f27ae400e4b4?d=identicon)[gamer-network](/maintainers/gamer-network)

---

Top Contributors

[![simon-downes](https://avatars.githubusercontent.com/u/1052903?v=4)](https://github.com/simon-downes "simon-downes (3 commits)")

---

Tags

frameworkeurogamergamer network

### Embed Badge

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

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

###  Alternatives

[hemp/presenter

Easy Model Presenters in Laravel

247592.6k1](/packages/hemp-presenter)[pestphp/pest-plugin-stressless

Stressless plugin for Pest

67792.6k16](/packages/pestphp-pest-plugin-stressless)[wpstarter/framework

The WpStarter Framework - Laravel Framework for WordPress

1810.1k4](/packages/wpstarter-framework)

PHPackages © 2026

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