PHP code example of icemanpro / aliyun-mns-laravel
1. Go to this page and download the library: Download icemanpro/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/ */
icemanpro / 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' => null,
'end_point' => 'http(s)://{AccountId}.mns.cn-hangzhou.aliyuncs.com',
'queue' => 'your-queue-name'
],
],