PHP code example of phpaml / engine

1. Go to this page and download the library: Download phpaml/engine library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

phpaml / engine example snippets


ClientAction::set('count', StateRef::to('count')->plus(1));
ClientAction::set('count', StateRef::to('count')->minus(1));
sh
PHPAML_BROWSER_RUNTIME=modules PHP_CLI_SERVER_WORKERS=2 php -S 127.0.0.1:8120 -t ../phpaml-view/examples/aml-tasks/public tests/task-app-router.php
safaridriver -p 8121