jamessessford/playing-cards
Composer 安装命令:
composer require jamessessford/playing-cards
包简介
A PHP implementation of a deck of playing cards to be used with Verbs
关键字:
README 文档
README
A package to provide an implementation of a deck of cards for fun with Verbs
To use this package, run composer require jamessessford/playing-cards.
Once installed, you can run php artisan vendor:publish --provider=PlayingCards\\PlayingCardsProvider to publish the card images to your public directory.
Usage
use PlayingCards\Deck; use PlayingCards\CardCollection; $deck = new Deck(); $cardCollection = CardCollection::make($deck->deal()); $cardImage = card_front($cardCollection->pop()); $cardBackImage = card_back();
Deck contents
4 suits of 13 cards.
The suits in the deck are
Hearts
Clubs
Diamonds
Spades
The cards that make up each suit are
Ace
Two
Three
Four
Five
Six
Seven
Eight
Nine
Ten
Jack
Queen
King
A deck consists of 52 cards, covering each value for each suit
A deck can be shuffled
A deck can be dealt from
A deck can be queried for remaining cards
Cards
A card has a suit and a value
jamessessford/playing-cards 适用场景与选型建议
jamessessford/playing-cards 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 25 次下载、GitHub Stars 达 0, 最近一次更新时间为 2024 年 10 月 31 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「cards」 「verbs」 「playing cards」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 jamessessford/playing-cards 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 jamessessford/playing-cards 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 jamessessford/playing-cards 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
An event sourcing package that feels nice.
Fork Off inacho/php-credit-card-validator Because it looks like is not being manteined anymore --- Validates popular debit and credit cards numbers against regular expressions and Luhn algorithm. Also validates the CVC and the expiration date
Laravel >=5.6 integration for the PHP Credit Cards package that allows to perform operations on debit and credit cards like format, validate brand, number and Luhn algorithm.
A Filament-native cards plugin for organizing pages and resources into a card-based navigation hub.
Opay gateway library with composer support
An event sourcing package that feels nice.
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 22
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-10-31