1. Go to this page and download the library: Download reptily/async-run 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/ */
reptily / async-run example snippets
new AsyncRun(
int $coresCount = 1, // Count of running threads
string $pathTmpDir = '/tmp', // path to temporary files directory
?string $lockFileName = null // filename for locale
);