PHP code example of thesmart / php-kue

1. Go to this page and download the library: Download thesmart/php-kue 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/ */

    

thesmart / php-kue example snippets


$kue = new KueApi('127.0.0.1', 6379);
$jobId = $kue->createJob('email', array (
	'title' => 'welcome email for tj',
	'to' => '[email protected]',
	'template' => 'welcome-email',
));

Results:

composer