This package is not installable via Composer 1.x, please make sure you upgrade to Composer 2+. Read more about our Composer 1.x deprecation policy.

Common interface for hugging libraries

1.0.0 2021-02-04 21:24 UTC

This package is auto-updated.

Last update: 2021-10-04 23:12:07 UTC


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.


composer require astrotomic/psr-8


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)