Download the PHP package newiep/wanglipush without Composer

On this page you can find all versions of the php package newiep/wanglipush. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package wanglipush

wanglipush

推送服务多渠道、易拓展SDK (For laravel/lumen)

当前支持渠道

install

composer require "newiep/wanglipush"

config

配置目录config/下增加配置文件gateways.php,结构如下:

return [

    /**
     * 针对短信有多个渠道接口,默认企信通
     */
    'sms_channel' => env('CHANNEL_TYPE', 'qxt'),

    'stores' => [
        /**
         * 企信通接口账号配置
         */
        'qxt' => [
            'key' => env('QXT_KEY', 'default key for qixintong'),
            'secret' => env('QXT_SECRET', 'default secret for qixintong'),
        ],

        /**
         * 云信接口账号配置
         */
        'yes' => [
            'key' => env('YES_KEY', 'default key for yunxin'),
            'secret' => env('YES_SECRET', 'default secret for yunxin'),
            'channel' => env('YES_CHANNEL', '276'),
        ],

        /**
         * 极光推送接口账号配置
         */
        'jpush' => [
            'key' => env('JPUSH_KEY', 'default key for jpush'),
            'secret' => env('JPUSH_SECRRT', 'default secret for jpush'),
        ],
    ],

];

Usage Example

//收件人列表,英文逗号分隔(发送短信)
$receiver = array(
    //短信接收人格式('phone' => 'number list')
    'phone' => ['18801301379, 18801301379', '....'],

    //极光接收人格式('alias' => 'number list')
    'alias' => ['693023', '1115256, '....'],

);

//内容
$content = '测试内容';

//发送短信(默认使用企信通)
$handle = new \WangliPush\PushFacade('sms', $receiver, $content);

//发送极光推送
$handle = new \WangliPush\PushFacade('jpush', $receiver, $content);

$result = $handle->send(); // success or fail

使用其他渠道发送短信

//使用云信
app('config')["gateways.sms_channel"] = 'yes';

$handle = new \WangliPush\PushFacade('sms', $receiver, $content);

$handle->send();

其他可用接口

是否收件人全部发送完成

$handle->isSendOver();

获取当前批次收件人

$handle->getBatchReceivers();

获取发送的消息内容

$handle->getMessage();

获取接口响应结果

$handle->getResultNo();

All versions of wanglipush with dependencies

PHP Build Version
Package Version
No informations.
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package newiep/wanglipush contains the following files

Loading the files please wait ....