PHP code example of haiaouang / alipush

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

    

haiaouang / alipush example snippets




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_')
        ]
    ],
];