承接 cooperav/sms-aero-v2-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cooperav/sms-aero-v2-laravel

Composer 安装命令:

composer require cooperav/sms-aero-v2-laravel

包简介

Package for using service messages in Laravel-5

README 文档

README

SMS Aero for laravel API version 2.

Installation

Step #1

 composer require cooperav/sms-aero-v2-laravelL

Step #2

 Read the documentation  https://smsaero.ru/description/api/

Usage

Add dependency

 use CooperAV\SmsAero\SmsAero;

Send message

    // Create SmsAero instance.
    $oSMSAero = new SmsAero('login','api_key');        
    // We can use it with config file f.e.
    // config('smsaero.login') and config('smsaero.api_key')
    
    // Set receiver's phone number.
    $phone_number = '111111111';
    
    // Set message content.
    $message = 'SMS Aero';
    
    // Sending channels.
    $type = 'DIRECT'; // In docuimentation describe other types.
    // To send message to another countries need use 'INTERNATIONAL' type.
    
    // Send message.
    $response = $oSMSAero->send($phone_number, $message, $type);
    
    // Default response data -> json. However we can get response in XML format.

统计信息

  • 总下载量: 4.13k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2019-01-17