astrotomic/psr-8

Common interface for hugging libraries

Fund package maintenance!
Gummibeer
forest.astrotomic.info

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 4

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/astrotomic/psr-8

1.0.0 2021-02-04 21:24 UTC

This package is auto-updated.

Last update: 2025-10-05 07:37:22 UTC


README

This repository holds all interfaces/classes/traits related to PSR-8.

Note that this is not a huggable of its own. It is merely an interface that describes a huggable. See the specification for more details.

Installation

composer require astrotomic/psr-8

Usage

If you need to hug, you can use the interface like this:

use Astrotomic\Hug\Huggable;

class HugController
{
    public function __invoke(Huggable $hugger, Huggable $huggable)
    {
        $hugger->hug($huggable);
    }
}

Credits