haiaouang/alipush

The Hht alipush package.

1.0.5 2019-02-26 08:27 UTC

This package is auto-updated.

Last update: 2024-05-26 20:21:27 UTC


README

Latest Stable Version License

laravel阿里推送包

安装

在你的终端运行以下命令

composer require haiaouang/alipush

或者在composer.json中添加

"haiaouang/alipush": "1.0.*"

然后在你的终端运行以下命令

composer update

安装依赖包 haiaouang/support

安装依赖包 haiaouang/pusher

设置推送信息的参数 config/pushers.php

调用

修改config/pushers.php对应的配置

<?php

return [
    'launchers' => [
        'alipush' => [
            'driver' => 'alipush',

            'url' => '',

            'action' => '',

            'format' => '',

            'version' => '',

            'region_id' => '',

            'access_key' => '',
            
            'access_key_secret' => '',
            
            'android' => [
                //包名
                'bundle_id' => '',
                //app id
                'app_id' => '',
                //app key
                'app_key' => '',
                //app secret
                'app_secret' => ''
            ],

            'ios' => [
                //包名
                'bundle_id' => '',
                //app id
                'app_id' => '',
                //app key
                'app_key' => '',
                //app secret
                'app_secret' => ''
            ],
            
            //前缀
            'prefix' => env('PUSH_PREFIX' , 'test_')
        ]
    ],
];

依赖包