PHP code example of kundu / laravel-funcqueue

1. Go to this page and download the library: Download kundu/laravel-funcqueue 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/ */

    

kundu / laravel-funcqueue example snippets


use kundu\LaravelFuncQueue\LaravelFuncQueue;

LaravelFuncQueue::run(MyClass::class, 'myMethod', ['param1', 'param2']);

LaravelFuncQueue::withConstructor(['param1'])->run(MyClass::class, 'myMethod', ['param2']);

LaravelFuncQueue::run(MyClass::class, 'myMethod', ['param1', 'param2'])->onQueue('default');