andersevenrud/sendega.php

Sendega SSM/MMS API Library for PHP

dev-master 2014-04-14 23:32 UTC

This package is auto-updated.

Last update: 2024-09-06 12:11:33 UTC


README

Sendega SSM/MMS API Library for PHP

关于

Sendega是一家挪威的短信/MMS解决方案提供商。

此库使用API发送和接收消息(以及其他额外API方法)

要求

需要PHP 5.2+以及mbstring、ctype、curl、xml、json和zip(用于MMS)

此库期望您的编码为UTF-8

安装

直接克隆此存储库到您的项目中或使用Composer

     "require": {
         "andersevenrud/sendega.php": "dev-master"
     }

文档

查看examples/server.php以接收消息和投递报告

查看examples/client.php以发送消息

方法

简略概述,完整的代码文档在Sendega.php

Sendega::SubscriptionCheckService($number)      // Check subscription service
Sendega::SubscriberEnquiry($number, $language)  // Subscriber Information Inquiry (Recipient Network Information)
Sendega::HomeLocationEnquiry($number)           // Home Location Inquiry (Recipient Location Information)
Sendega::ParseDeliveryReport()                  // Parses incoming delivery report
Sendega::ParseMessage()                         // Parses incoming message (SMS/MMS)
Sendega::SendSMS($number, $text)                // Sends SMS message
Sendega::SendMMS($number, $text, $attachments)  // Sends MMS message

链接

许可证


Sendega.php - Copyright (c) 2014, Anders Evenrud <andersevenrud@gmail.com>
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met: 

1. Redistributions of source code must retain the above copyright notice, this
   list of conditions and the following disclaimer. 
2. Redistributions in binary form must reproduce the above copyright notice,
   this list of conditions and the following disclaimer in the documentation
   and/or other materials provided with the distribution. 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.