PHPackages                             fvfvfvfv/codyfight-php - 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. [API Development](/categories/api)
4. /
5. fvfvfvfv/codyfight-php

ActiveLibrary[API Development](/categories/api)

fvfvfvfv/codyfight-php
======================

A PHP client for Codyfight

013PHP

Since Jun 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/fvfvfvfv/codyfight-php)[ Packagist](https://packagist.org/packages/fvfvfvfv/codyfight-php)[ RSS](/packages/fvfvfvfv-codyfight-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

A PHP Client for interacting with the Codyfight API
---------------------------------------------------

[](#a-php-client-for-interacting-with-the-codyfight-api)

---

### Installation

[](#installation)

```
composer install fvfvfvfv/codyfight-php

```

### Usage

[](#usage)

Before being able to interact with the Codyfight API, you need to [generate a CKey](https://codyfight.com/play/)

#### Creating a Codyfight instance

[](#creating-a-codyfight-instance)

```
$codyfight = new \Fvfvfvfv\CodyfightClient\Codyfight($cKey);
```

#### Starting a game

[](#starting-a-game)

```
$game = $codyfight->init(\Fvfvfvfv\CodyfightClient\Enums\GameMode::FRIENDLY, 'foo')
```

Every interaction with the Codyfight API returns a `Game` class instance This instance contains all data returned from the API.

*In the future this client will be extended to cast returned data into their relevant classes*

#### Available methods

[](#available-methods)

```
$codyfight->init(\Fvfvfvfv\CodyfightClient\Enums\GameMode::FRIENDLY, 'foo'); // Initializes a new game
$codyfight->check(); // Returns a Game instance without performing any action
$codyfight->cast($skillId, $x, $y); // Cast a skill onto the specified tile
$dodyfight->move($x, $y); // Moves the player to the specified tile
$codyFight->surrender(); // Surrenders the game
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance28

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity18

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/b8474a47e56250b7a67f1910e560609529bf02775deb35b2faad8ad763e64d7a?d=identicon)[fvfvfvfv](/maintainers/fvfvfvfv)

---

Top Contributors

[![fvfvfvfv](https://avatars.githubusercontent.com/u/91192804?v=4)](https://github.com/fvfvfvfv "fvfvfvfv (16 commits)")

### Embed Badge

![Health badge](/badges/fvfvfvfv-codyfight-php/health.svg)

```
[![Health](https://phpackages.com/badges/fvfvfvfv-codyfight-php/health.svg)](https://phpackages.com/packages/fvfvfvfv-codyfight-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M475](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M270](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[microsoft/microsoft-graph

The Microsoft Graph SDK for PHP

65723.5M95](/packages/microsoft-microsoft-graph)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)

PHPackages © 2026

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