PHP code example of silpo-tech / openswoole-bundle

1. Go to this page and download the library: Download silpo-tech/openswoole-bundle 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/ */

    

silpo-tech / openswoole-bundle example snippets


BatchRunner::fromCallables($callables)->withSequential(false)->runAll();

// Force sequential for all tests
BatchRunner::forceSequential(true);

// Force concurrent for all tests
BatchRunner::forceSequential(false);

// Restore auto-detection
BatchRunner::forceSequential(null);
bash
# Start the openswoole server
$ php bin/console openswoole:server:start