Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/crisu83/psr8-implementation
PSR-8 implementation
https://github.com/crisu83/psr8-implementation
Last synced: 13 days ago
JSON representation
PSR-8 implementation
- Host: GitHub
- URL: https://github.com/crisu83/psr8-implementation
- Owner: crisu83
- License: mit
- Created: 2016-04-06T06:34:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-02T19:43:55.000Z (almost 8 years ago)
- Last Synced: 2024-12-17T12:08:04.485Z (about 1 month ago)
- Language: PHP
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# psr8-implementation
PSR-8 implementationBased on [PSR-8](https://github.com/php-fig/fig-standards/blob/master/proposed/psr-8-hug/psr-8-hug.md)
It's an april fool, but like all april fool, I like to implement it, and see how it really work.
I've created different object like human, astronaut, robot. They implement `hug()` method. Then, each object can hug an other object.
```php
$human = new Human();
$ewok = new Ewok();$human->hug($ewok);
```Whoa ! A human is hugging an ewok :D
You can do a group hug.
```php
$human = new Human();
$ewok = new Ewok();
$walle = new Robot();$groupHub = new GroupHug();
$groupHug->groupHug([
$human,
$ewok,
$walle
]);
```Each object will hug each other.