PHP code example of latrell / aliyun-mns-laravel

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

    

latrell / aliyun-mns-laravel example snippets


	'providers' => [
		// ...
		Latrell\AliyunMns\MnsServiceProvider::class,
	]

	'connections' => [
		// ...
		'mns' => [
            'driver' => 'mns',
            'access_id' => 'your-access-key-id',
            'access_key' => 'your-access-key-secret',
            'security_token' => 'your-security-token',
            'end_point' => 'http(s)://{AccountId}.mns.cn-hangzhou.aliyuncs.com',
            'queue' => 'your-queue-name'
        ],
	],