PHP code example of php-earth / swoole-engine

1. Go to this page and download the library: Download php-earth/swoole-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/ */

    

php-earth / swoole-engine example snippets

bash
  echo "extension=swoole" | sudo tee --append `php -r 'echo php_ini_loaded_file();'`
  
bash
  php --ri swoole
  
bash
composer