PHPackages                             iannsp/phpwar - 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. iannsp/phpwar

ActiveLibrary

iannsp/phpwar
=============

code battle with php

2566[3 issues](https://github.com/iannsp/phpwar/issues)PHP

Since Jul 28Pushed 11y ago6 watchersCompare

[ Source](https://github.com/iannsp/phpwar)[ Packagist](https://packagist.org/packages/iannsp/phpwar)[ RSS](/packages/iannsp-phpwar/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (3)Used By (0)

phpwar [![Build Status](https://camo.githubusercontent.com/b9af8afb99f444fb3328bb4716b6290579b6d4d225d6e52365d286983f9863fc/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f69616e6e73702f7068707761722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/iannsp/phpwar)
==========================================================================================================================================================================================================================================================================================

[](#phpwar-)

Code War php

PHPWar is a simple programming game where you develop your player and put this in the arena to fight against other players.

[You can watch a game of two P1 Player into a 10X10 arena here](https://www.youtube.com/watch?v=WJ_JycDmAJ0)

Each game has an Arena and the dimension of the arena can set with:

```

```

Each Game can have any number of players, even One \[win warranty\] ;)

```

```

The playgame.php file is a sample about how to configure and set the game. It already print(bash) the game result, like this:

```
    _____  _    _ _____   __          __
   |  __ \| |  | |  __ \  \ \        / /
   | |__) | |__| | |__) |  \ \  /\  / /_ _ _ __
   |  ___/|  __  |  ___/    \ \/  \/ / _` | '__|
   | |    | |  | | |         \  /\  / (_| | |
   |_|    |_|  |_|_|          \/  \/ \__,_|_|

 0  .  1  .  1  1  0  1  0  0
 0  1  0  1  .  0  1  1  0  1
 .  .  .  0  1  1  1  0  1  .
 0  1  0  1  1  .  0  1  0  1
 0  0  .  1  0  1  .  1  .  .
 1  1  0  1  .  1  1  0  1  1
 .  .  1  1  1  0  1  1  0  1
 1  1  0  1  0  0  1  1  0  .
 .  1  .  .  .  1  0  1  1  1
 1  .  .  1  0  0  .  1  1  1

 Result
 Player 0 has 28 position(s).
 Player 1 has 69 position(s).
```

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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/2305ea1f48319271d323c5e1c0aadd4cc45d10c4927dd8b3af083facb8c6f75f?d=identicon)[iannsp](/maintainers/iannsp)

---

Top Contributors

[![iannsp](https://avatars.githubusercontent.com/u/40551?v=4)](https://github.com/iannsp "iannsp (42 commits)")[![ckdarby](https://avatars.githubusercontent.com/u/220283?v=4)](https://github.com/ckdarby "ckdarby (3 commits)")

### Embed Badge

![Health badge](/badges/iannsp-phpwar/health.svg)

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

PHPackages © 2026

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