PHPackages                             sendamaphp/engine - 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. [CLI &amp; Console](/categories/cli)
4. /
5. sendamaphp/engine

ActiveLibrary[CLI &amp; Console](/categories/cli)

sendamaphp/engine
=================

A simple game engine for making terminal/console games. Lovingly written in pure PHP.

0.5.7(1mo ago)1104MITPHPPHP ^8.4

Since May 6Pushed 1mo ago1 watchersCompare

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

READMEChangelog (10)Dependencies (16)Versions (46)Used By (0)

 [![Sendama 2d Game Engine](logo.png)](logo.png)

Sendama — A 2D Game Engine for Terminal Based Games
===================================================

[](#sendama--a-2d-game-engine-for-terminal-based-games)

by

What is it?
-----------

[](#what-is-it)

[![Sendama](examples/blasters/blasters.gif)](examples/blasters/blasters.gif)

Sendama is a 2D game engine for creating terminal based games. It is designed to be simple and easy to use, while providing the necessary tools to create fun and engaging games. The engine is built using PHP and is designed to be cross-platform, so you can create games that run on Windows, Linux, and macOS. Rather than using complex graphics libraries, Sendama uses simple ASCII characters to create game worlds, making it easy to create games that are both fun and visually appealing. By leveraging the power of ANSI escape codes, Sendama allows you to create games that are interactive and engaging, with support for keyboard input, animations, and more.

### But why PHP?

[](#but-why-php)

Why not? PHP is a popular programming language that is widely used for web development, but it is also a powerful language in its own right. With the release of PHP 8, PHP has become even more powerful, with new features and improvements that make it a great choice for game development. By using PHP, you can take advantage of the language's simplicity and ease of use, while still being able to create games that are fun and engaging. And because PHP is cross-platform, you can create games that run on Windows, Linux, and macOS, without having to worry about compatibility issues.

Requirements
------------

[](#requirements)

- PHP 8.3 or newer
- WSL (For Windows)
- Composer 2.7.1 or later

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

[](#installation)

### Using the [Sendama CLI](https://github.com/atatusoft-ltd/sendama-console)

[](#using-the-sendama-cli)

The recommended way to install Sendama is through the CLI. You can install Sendama by running the following commands:

```
composer global require sendamaphp/console
```

For more information and setup see [Sendama CLI](https://github.com/atatusoft-ltd/sendama-console).

#### Create a new game

[](#create-a-new-game)

Once the CLI is installed, you can start a new game by running the following command:

```
sendama new mygame
```

This will create a new game in the current directory. You can get started by changing into the game directory and running the game:

```
cd mygame
php mygame.php
```

### Using Composer

[](#using-composer)

#### For Linux, BSD etc

[](#for-linux-bsd-etc)

```
mkdir /path/to/your/game
composer init
...
composer require sendamaphp/engine
```

#### For Windows

[](#for-windows)

From the WSL terminal follow Linux instructions

#### OSX

[](#osx)

```
mkdir /path/to/your/game
composer init
...
composer require sendamaphp/engine
```

Usage
-----

[](#usage)

See [examples](examples/EXAMPLES.md), [Documentation](docs/DOCS.md), and the [Collision Detection Guide](docs/Collision.md).

Notes
-----

[](#notes)

The examples in examples are made to demonstrate how Sendama may be used to make simple 2D games.

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance90

Actively maintained with recent releases

Popularity14

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 99.7% 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

Every ~16 days

Recently: every ~2 days

Total

44

Last Release

55d ago

PHP version history (2 changes)0.0.1PHP ^8.3

0.5.1PHP ^8.4

### Community

Maintainers

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

---

Top Contributors

[![amasiye](https://avatars.githubusercontent.com/u/5607605?v=4)](https://github.com/amasiye "amasiye (388 commits)")[![amasiyelr](https://avatars.githubusercontent.com/u/141437318?v=4)](https://github.com/amasiyelr "amasiyelr (1 commits)")

###  Code Quality

TestsPest

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/sendamaphp-engine/health.svg)

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

###  Alternatives

[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)

PHPackages © 2026

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