bafs / chip8
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/bafs/chip8
Requires
- php: >=8.1
- symfony/console: ^6.0
Requires (Dev)
- phpstan/phpstan: ~1.10
- phpunit/phpunit: ^10.0
- squizlabs/php_codesniffer: ^3.7
This package is auto-updated.
Last update: 2025-10-27 20:50:40 UTC
README
Chip 8 emulator coded in PHP 8, using Symfony "Console" package.
Run in the terminal
- composer i
- ./bin/chip8 <yourgame.ch8>
The default keyboard layout was mapped as follows:
native:      emulator:
1|2|3|C  ->  1|2|3|4
4|5|6|D  ->  Q|W|E|R
7|8|9|E  ->  A|S|D|F
A|0|B|F  ->  Z|X|C|V
Tests
- ./vendor/bin/phpunit tests/ --testdox
Quality
Static Analysis
- ./vendor/bin/phpstan analyse src/ -l 7
Syntax lint
- ./vendor/bin/phpcs --standard=PSR12 src/