PHP code example of yaojingwei / laravel-mns

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

    

yaojingwei / laravel-mns example snippets


'mns'        => [
	'driver'       => 'mns',
	'key'          => env('QUEUE_MNS_ACCESS_KEY'),
	'secret'       => env('QUEUE_MNS_SECRET_KEY'),
	'endpoint'     => env('QUEUE_MNS_ENDPOINT'),
	'queue'        => env('QUEUE_NAME'),
	'wait_seconds' => 30,
]

Queue::push(function($job){
	/**
	 * Your statments go here
	 */
	$job->delete();
});
 php
Lokielse\LaravelMNS\LaravelMNSServiceProvider::class
bash
$ php artisan queue:listen