Executes command to ET console using FFI.

  • git clone https://klva.cz/src/etwolf/php-ffi.git
  • Initial commit. c5e65e9, 31 Mar 2020
    src/
    .editorconfig
    .gitignore
    composer.json
    README.md

    ETFFI

    Experimental library for executing commands in local ET console from PHP using FFI extension.

    AmK\ETFFI\Console::exec('say gg');
    
    // Simple anti-AFK timeout.
    for(;;) {
    	AmK\ETFFI\Console::exec('+moveleft;wait 50;-moveleft;+moveright;wait 50;-moveright');
    	sleep(30);
    }