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)
{
$hugger->hug($huggable);
}
}
- 🧑💻 Tom Witkowski
- 📝 Larry Garfield - Editor of original PSR
- 💌 Tobias van Beek - Idea for the package after a postcard
- 🐶 Yoda - Reason for Tobias to send a postcard
- All Contributors