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

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

hassanzohdy/php-contracts
=========================

A list of php interfaces to be implemented for learning people

1.0.18(6y ago)120PHP

Since Sep 2Pushed 6y ago2 watchersCompare

[ Source](https://github.com/hassanzohdy/php-contracts)[ Packagist](https://packagist.org/packages/hassanzohdy/php-contracts)[ RSS](/packages/hassanzohdy-php-contracts/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (15)Used By (0)

PHP Contracts
=============

[](#php-contracts)

A list of `contracts` A.K.A **PHP Interfaces** to be implemented for learning people.

Installation
============

[](#installation)

Run the following command line using composer

`composer require hassanzohdy/php-contracts`

List of interfaces
==================

[](#list-of-interfaces)

Http
----

[](#http)

- [RequestInterface](./src/Http/RequestInterface.php)
- [ResponseInterface](./src/Http/ResponseInterface.php)
- [UploadedFile](./src/Http/UploadedFile.php)
- [RouterInterface](./src/Http/RouterInterface.php)

Storage
-------

[](#storage)

- [StorageInterface](./src/Storage/StorageInterface.php)
- [SessionInterface](./src/Storage/SessionInterface.php)
- [CookieJarInterface](./src/Storage/CookieJarInterface.php)

Encryption
----------

[](#encryption)

- [CookieJarInterface](./src/Encryption/EncrypterInterface.php)

Filesystem
----------

[](#filesystem)

- [FilesystemInterface](./src/Filesystem/FilesystemInterface.php)

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity66

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

Recently: every ~13 days

Total

14

Last Release

2367d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13071138?v=4)[Hasan Zohdy](/maintainers/hassanzohdy)[@hassanzohdy](https://github.com/hassanzohdy)

---

Top Contributors

[![hassanzohdy](https://avatars.githubusercontent.com/u/13071138?v=4)](https://github.com/hassanzohdy "hassanzohdy (22 commits)")

### Embed Badge

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

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

###  Alternatives

[phpdocumentor/type-resolver

A PSR-5 based resolver of Class names, Types and Structural Element Names

9.2k719.5M166](/packages/phpdocumentor-type-resolver)[pimple/pimple

Pimple, a simple Dependency Injection Container

2.7k130.5M1.4k](/packages/pimple-pimple)[league/container

A fast and intuitive dependency injection container.

86387.8M342](/packages/league-container)[stella-maris/clock

A pre-release of the proposed PSR-20 Clock-Interface

7947.5M2](/packages/stella-maris-clock)[wptrt/wpthemereview

PHP\_CodeSniffer rules (sniffs) to verify theme compliance with the rules for theme hosting on wordpress.org

217736.5k28](/packages/wptrt-wpthemereview)[inpsyde/modularity

Modular PSR-11 implementation for WordPress plugins, themes or libraries.

54383.3k3](/packages/inpsyde-modularity)

PHPackages © 2026

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