Skip to content

Astrotomic/psr-8

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 
 
 

PSR-8 Hug

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