a termbox wrapper for PHP
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
examples
tests
CREDITS
EXPERIMENTAL
LICENSE
README.md
config.m4
config.w32
constants.h
package.xml
php_termbox.h
termbox.c

README.md

termbox-php

termbox-php is a termbox wrapper for PHP. termbox is a robust, minimal alternative to ncurses. See https://github.com/nsf/termbox for more info.

Requirements

  • PHP
  • termbox

Your distro may have pre-built packages for these. If not, you must build these from source as well.

Building

$ # Clone repo
$ git clone https://github.com/adsr/termbox-php.git
$ cd termbox-php
$
$ # Build extension
$ phpize && ./configure && make
$
$ # Run keyboard demo
$ php -dextension=`pwd`/modules/termbox.so examples/termbox.php
$
$ # Optionally install
$ sudo make install

PECL

You may also install termbox-php via PECL.

$ sudo pecl install channel://pecl.php.net/termbox-0.1.3

Screenshot

Below is a screenshot of termbox-php in action.

termbox-php in action