Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/openlegends/core-php
- Owner: openlegends
- License: mit
- Created: 2024-03-19T22:47:54.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-19T22:59:38.000Z (10 months ago)
- Last Synced: 2024-11-15T21:52:37.037Z (about 2 months ago)
- Topics: card, composer, core, deck, game, multi-player, openlegends, php
- Language: PHP
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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()
);
```