PHP code example of per3evere / preq
1. Go to this page and download the library: Download per3evere/preq 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/ */
per3evere / preq example snippets
Per3evere\Preq\PreqServiceProvider::class
$app->register(Per3evere\Preq\PreqServiceProvider::class);
$command = app('preq')->getCommand(\App\Services\Example::class);
// 同步执行命令
echo $command->execute();
// 异步执行命令
$command->queue();