Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/openlegends/core-php

Open Legends Core Library in PHP 8
https://github.com/openlegends/core-php

card composer core deck game multi-player openlegends php

Last synced: 8 days ago
JSON representation

Open Legends Core Library in PHP 8

Awesome Lists containing this project

README

        

# Open Legends Core

Project under development!

## Install

`composer require openlegends/core:dev-main`

## Test features

### Cards

`composer require openlegends/asset:dev-main`

```
card(
$rat
);

var_dump(
$mouse->getHealth()
);

var_dump(
$rat->getHealth()
);
```

### Pool

Useful for decks, hand, discard pile, etc

`composer require openlegends/asset:dev-main`

```
addCard(
new \OpenLegends\Asset\Test\Card\Goblin()
);

$deck->addCard(
new \OpenLegends\Asset\Test\Card\Mouse()
);

$deck->addCard(
new \OpenLegends\Asset\Test\Card\Rat()
);

var_dump(
$deck->getRandomCard()->getName()
);
```