PHPackages                             winter/wn-battlesnake-plugin - 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. winter/wn-battlesnake-plugin

ActiveWinter-plugin[Utility &amp; Helpers](/categories/utility)

winter/wn-battlesnake-plugin
============================

Playground for building Battlesnakes in Winter CMS

1161PHP

Since Dec 5Pushed 7mo ago2 watchersCompare

[ Source](https://github.com/wintercms/wn-battlesnake-plugin)[ Packagist](https://packagist.org/packages/winter/wn-battlesnake-plugin)[ RSS](/packages/winter-wn-battlesnake-plugin/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Battlesnake Plugin
==================

[](#battlesnake-plugin)

[![MIT License](https://camo.githubusercontent.com/7013272bd27ece47364536a221edb554cd69683b68a46fc0ee96881174c4214c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e737667)](https://github.com/wintercms/wn-battlesnake-plugin/blob/main/LICENSE)

Playground for building &amp; debugging battlesnakes in Winter CMS.

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

[](#installation)

This plugin is available for installation via [Composer](http://getcomposer.org/).

```
composer require winter/wn-battlesnake-plugin
```

After installing the plugin you will need to run the migrations and (if you are using a [public folder](https://wintercms.com/docs/develop/docs/setup/configuration#using-a-public-folder)) [republish your public directory](https://wintercms.com/docs/develop/docs/console/setup-maintenance#mirror-public-files).

```
php artisan migrate
```

Running Local Games
-------------------

[](#running-local-games)

Run local Battlesnake games using your snake templates with the `battlesnake:play` command:

```
# Run a game with specific snakes (by slug)
php artisan battlesnake:play snake1 snake2

# Run multiple instances of the same snake
php artisan battlesnake:play local:3

# Mix snakes and counts
php artisan battlesnake:play snake1 snake2:2 snake3

# Interactive mode (prompts for snake selection)
php artisan battlesnake:play
```

### Options

[](#options)

OptionDescriptionDefault`-W, --width`Board width11`-H, --height`Board height11`-t, --timeout`Request timeout in milliseconds500`-r, --seed`Random seed for reproducibility-`-d, --delay`Delay between turns in milliseconds-`-g, --gametype`Game type (standard, royale, etc.)standard`-m, --map`Map to usestandard`-b, --browser`Open game in browser viewer-`-o, --output`Output game log to JSON file-### Examples

[](#examples)

```
# Quick game with browser viewer
php artisan battlesnake:play local:4 --browser

# Slow game for debugging
php artisan battlesnake:play local:2 --delay=500

# Reproducible game with seed
php artisan battlesnake:play snake1 snake2 --seed=12345

# Large board royale game
php artisan battlesnake:play local:8 -W 19 -H 19 -g royale

# Save game log for replay
php artisan battlesnake:play local:4 -o game.json
```

###  Health Score

19

—

LowBetter than 9% of packages

Maintenance45

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity13

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://avatars.githubusercontent.com/u/7253840?v=4)[Luke Towers](/maintainers/LukeTowers)[@LukeTowers](https://github.com/LukeTowers)

---

Top Contributors

[![LukeTowers](https://avatars.githubusercontent.com/u/7253840?v=4)](https://github.com/LukeTowers "LukeTowers (7 commits)")

### Embed Badge

![Health badge](/badges/winter-wn-battlesnake-plugin/health.svg)

```
[![Health](https://phpackages.com/badges/winter-wn-battlesnake-plugin/health.svg)](https://phpackages.com/packages/winter-wn-battlesnake-plugin)
```

###  Alternatives

[admad/cakephp-tree

CakPHP plugin for working with tree structures.

11301.4k](/packages/admad-cakephp-tree)[elgentos/vat-switcher

Vat switcher to let customer decide on how to show their prices

1513.0k](/packages/elgentos-vat-switcher)

PHPackages © 2026

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