PHPackages                             enisshala/pokerhands - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. enisshala/pokerhands

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

enisshala/pokerhands
====================

get poker hands from a file and return hands from the highest to lowest

v1.0(6y ago)17MITPHPPHP &gt;=7.1.0CI failing

Since Nov 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/enisshala/pokerhands)[ Packagist](https://packagist.org/packages/enisshala/pokerhands)[ Docs](https://github.com/enisshala/pokerhands)[ RSS](/packages/enisshala-pokerhands/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

pokerhands
==========

[](#pokerhands)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/e271d9fa8de35a72c151bfa897fe50d81654f550c7f628b280cf5d1bcbcdeea6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7468657068706c65616775652f736b656c65746f6e2f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/thephpleague/skeleton)

This PHP package reads poker hands from a file and returns the list of the hands sorted by the rank from highest to lowest.

Install
-------

[](#install)

Via Composer

```
$ composer require enisshala/pokerhands
```

Usage
-----

[](#usage)

```
$hands = new enisshala\PokerClass();
echo $hands->sortHands($hands_file);
```

Testing with CLI
----------------

[](#testing-with-cli)

in the root folder of the package there is IndexTest.php, you can run it in terminal with following command

```
php -r "include 'IndexTest.php'; IndexTest::test('https://pastebin.com/raw/FXneUYCc');"
```

I used Pastebin for hands and reading from file, some of the hands i used:

```
https://pastebin.com/raw/FXneUYCc
https://pastebin.com/raw/4xRPSB9j
https://pastebin.com/raw/5Mn3z8m1

```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](https://github.com/thephpleague/:package_name/blob/master/CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Enis Shala](https://github.com/enisshala)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2355d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/535a0a035ffea15ef048200a9e2823509139103208183d68147a007132b3ce43?d=identicon)[enisshala](/maintainers/enisshala)

---

Top Contributors

[![enisshala](https://avatars.githubusercontent.com/u/16815369?v=4)](https://github.com/enisshala "enisshala (15 commits)")

---

Tags

enisshalapokerhands

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/enisshala-pokerhands/health.svg)

```
[![Health](https://phpackages.com/badges/enisshala-pokerhands/health.svg)](https://phpackages.com/packages/enisshala-pokerhands)
```

###  Alternatives

[spatie/emoji

Display emoji characters

4671.2M32](/packages/spatie-emoji)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
