PHPackages                             garak/bridge - 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. garak/bridge

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

garak/bridge
============

A PHP library to manage bridge card games

v0.7.0(1mo ago)081LGPL-3.0-or-laterPHPPHP ^8.2CI passing

Since Jun 16Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/garak/bridge)[ Packagist](https://packagist.org/packages/garak/bridge)[ RSS](/packages/garak-bridge/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (5)Dependencies (14)Versions (9)Used By (0)

PHP Bridge library
==================

[](#php-bridge-library)

[![Latest Stable Version](https://camo.githubusercontent.com/15cc3a9f4631922e6ed13823eafdf5c02d920b4054f61188a35b367a2056048c/687474703a2f2f706f7365722e707567782e6f72672f676172616b2f6272696467652f76)](https://packagist.org/packages/garak/bridge)[![Latest Unstable Version](https://camo.githubusercontent.com/a7505f6ef1b19991c0429df3f7b46d2155d96e1c95c5e8303339907504018cd9/687474703a2f2f706f7365722e707567782e6f72672f676172616b2f6272696467652f762f756e737461626c65)](https://packagist.org/packages/garak/bridge)[![License](https://camo.githubusercontent.com/264a5c270f156fc195a38a2fecc039e1a4e23bd6c308d5a1fa36327d465721a0/687474703a2f2f706f7365722e707567782e6f72672f676172616b2f6272696467652f6c6963656e7365)](https://packagist.org/packages/garak/bridge)[![PHP Version Require](https://camo.githubusercontent.com/54a22dda856c091bf90efda3e6e0041ee8b78bbd02404f52c6b7586e7d70f9f4/687474703a2f2f706f7365722e707567782e6f72672f676172616b2f6272696467652f726571756972652f706870)](https://packagist.org/packages/garak/bridge)[![Maintainability](https://camo.githubusercontent.com/b6f1f8d561e0404641169d5b87d1ae416e7c7c9a4c9bf78c6e4c63206e75afdc/68747470733a2f2f716c74792e73682f67682f676172616b2f70726f6a656374732f6272696467652f6d61696e7461696e6162696c6974792e737667)](https://qlty.sh/gh/garak/projects/bridge)[![Code Coverage](https://camo.githubusercontent.com/d4f56408b12fb7f5b5f165d4825a33d8011a85ba97d356a457ad3226e8755df1/68747470733a2f2f716c74792e73682f67682f676172616b2f70726f6a656374732f6272696467652f636f7665726167652e737667)](https://qlty.sh/gh/garak/projects/bridge)

[![https://commons.wikimedia.org/wiki/File:Four_overlapping_playing_cards.jpg](https://camo.githubusercontent.com/c7bbf08defed14799b8630519c1daa0b1a6156584c2e51488d9feffc4ba412ea/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f352f35652f466f75725f6f7665726c617070696e675f706c6179696e675f63617264732e6a70672f31323070782d466f75725f6f7665726c617070696e675f706c6179696e675f63617264732e6a7067)](https://camo.githubusercontent.com/c7bbf08defed14799b8630519c1daa0b1a6156584c2e51488d9feffc4ba412ea/68747470733a2f2f75706c6f61642e77696b696d656469612e6f72672f77696b6970656469612f636f6d6d6f6e732f7468756d622f352f35652f466f75725f6f7665726c617070696e675f706c6179696e675f63617264732e6a70672f31323070782d466f75725f6f7665726c617070696e675f706c6179696e675f63617264732e6a7067)

Introduction
------------

[](#introduction)

This library offers some PHP classes useful for creating a Bridge card game:

- Game *(needs to be extended)*
- Player *(needs to be extended)*
- Table
- Turn
- Hand
- Side
- Wins

Installation
------------

[](#installation)

Run `composer require garak/bridge`.

Usage
-----

[](#usage)

Here is an example of the first turn of a game:

```
