PHP code example of tourze / workerman-core-dump-cleaner
1. Go to this page and download the library: Download tourze/workerman-core-dump-cleaner 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/ */
tourze / workerman-core-dump-cleaner example snippets
use Tourze\Workerman\CoreDumpCleaner\CoreDumpCleaner;
// Initialize with project directory and optional cron schedule
// Default schedule is every 30 seconds
new CoreDumpCleaner('/path/to/project', '*/30 * * * * *');