First, you must install Homebrew if you don't have it, like so:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Next, you must install PHP 8.4 (we tested it with 8.4) like so from Homebrew:
brew install [email protected]
Or the latest build if you desire:
brew install php
Then, host the server with PHP (replace yourfolder with the actual folder name where you wish to place senyai.php):
cd yourfolder php -S 127.0.0.1:8000 -t .
Once you do that, test it with this Scratch code (you can use Windows if you're a masochist, but this PHP server is designed for *NIX systems, especially macOS, but you are free to fork the code and modify the Scratch example to your needs as long as you follow the API schema, but make sure to provide and/or change the sounds):
