PHPackages                             effectra/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. effectra/contracts

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

effectra/contracts
==================

The Effectra Common Interfaces package.

v1.0.0(2y ago)1231MITPHP

Since Jun 18Pushed 2y agoCompare

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

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

Effectra\\Contracts Package
===========================

[](#effectracontracts-package)

The `Effectra\Contracts` package provides a set of contracts/interfaces that define the standardized behavior and contracts for various components used in the Effectra application.

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

[](#installation)

You can install the package via Composer by running the following command:

```
composer require effectra/contracts
```

Usage
-----

[](#usage)

The package includes the following contracts/interfaces:

- `Http\RequestFoundationInterface`: Defines the contract for creating a `ServerRequestInterface` instance from global variables.
- `Http\ResponseFoundationInterface`: Defines the contract for sending a `ResponseInterface` instance.
- `Http\RouterDispatcher`: Extends `RouterInterface` and provides additional methods for adding requests and responses to the dispatcher.
- `Http\RouterInterface`: Defines the contract for a router that dispatches server requests and returns responses.

To use any of these interfaces, simply implement them in your classes:

```
use Effectra\Contracts\Http\RequestFoundationInterface;
use Psr\Http\Message\ServerRequestInterface;

class MyRequestFoundation implements RequestFoundationInterface
{
    public static function createFromGlobals(): ServerRequestInterface
    {
        // Implement your logic here to create and return a ServerRequestInterface instance from global variables
    }
}
```

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

[](#contributing)

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request on the GitHub repository of this package.

License
-------

[](#license)

This package is open-source and licensed under the [MIT License](https://opensource.org/licenses/MIT).

About Effectra
--------------

[](#about-effectra)

Effectra is a leading technology company specializing in innovative solutions for \[describe what Effectra does and its main areas of expertise\].

For more information about Effectra, visit our website:

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

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

Unknown

Total

1

Last Release

1065d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7e6219ae87e98df8783b2f595b013035dd183c0712afd24045a8acf0a40c3bdf?d=identicon)[effectra](/maintainers/effectra)

---

Top Contributors

[![BMTmohammedtaha](https://avatars.githubusercontent.com/u/95439605?v=4)](https://github.com/BMTmohammedtaha "BMTmohammedtaha (5 commits)")

---

Tags

contractshttpinterfacephprequestsresponsiverouterserver-requestserver-request-handler

### Embed Badge

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

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

###  Alternatives

[jaxon-php/jaxon-core

Jaxon is an open source PHP library for easily creating Ajax web applications

73142.3k25](/packages/jaxon-php-jaxon-core)[flarum/core

Delightfully simple forum software.

211.3M1.9k](/packages/flarum-core)[fisharebest/webtrees

webtrees online genealogy

73710.5k13](/packages/fisharebest-webtrees)[oat-sa/lib-lti1p3-core

OAT LTI 1.3 Core Library

36341.9k10](/packages/oat-sa-lib-lti1p3-core)[eliashaeussler/typo3-solver

Extension for TYPO3 CMS to extend TYPO3's exception handling with AI generated solutions

292.1k](/packages/eliashaeussler-typo3-solver)[los/basepath

PHP middleware to remove a path prefix from request uri

14132.4k](/packages/los-basepath)

PHPackages © 2026

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