mobily-ws/api
Composer 安装命令:
composer require mobily-ws/api
包简介
Mobily-api is the PHP library for sending sms through internet
关键字:
README 文档
README
You can install mobily-ws/api via composer or by typing in command line
composer require mobily-ws/api
OR include require in composer.json
{
"require": {
"mobily-ws/api": "1.0.0"
}
}
Quickstart
TO USE Api AFTER DOWNLOAD
In order to use Mobily Api, you must take the following steps:
-
Registration on the site through the following steps:
- Go to the following link:
mobily.ws - Go to page (Register now) at the top of the page
- Enter the information
- Enable sender name to send messages
- Go to the following link:
-
Download the Mobily Api and install it in your system
-
Insert user information (ApiKEY or mobile and password) ,this information's is provided to you by the site In the function setInfo defines user information
Mobily Api Portals
We provide many services that make it easy to use the api, and these are some our of the services:
- send sms
- send sms using message template
- sending sms directly
- sending status
- Add mobile number as sender name
- Activate mobile number as sender name
- Check that the mobile number is activated as a sender's name
- Possibility to change password
- Retrieve password
- Balance Inquiry
- Delete sms
- Add a text sender name
- Activate the text sender name
Services Example
Send SMS message
You can send SMS messages using the transmission gate to ensure the privacy of information and the speed of sending and ensure they arrive, and this portal provid the ability to sending messages to many numbers at once and without any effortless and tired, is the gate to send and receive messages using JSON technology And These an example of how to use the portal:
<?php require_once('MobilySms.php'); //use Mobily; $sms = new MobilySms('user name','password','ApiKEY'); $result=$sms->sendMsg('This is Message','9662222222222,9662222222222,9662222222222','NEW SMS','17:30:00','12/30/2017',1,'deleteKey','curl'); ?>
Send SMS using message Template
This portal offers the ability to send SMS messages using a unified message template for different numbers. This portal allows you to add fixed message text and put symbols in it. This portal transmits the information of each number with the symbols in the message to form a message for each number. the operation :
<?php require_once('MobilySms.php'); //use Mobily; $sms = new MobilySms('user name','password','ApiKEY'); $msg = "Welcome (1)، Your subscription date is up to (2)"; $msgKey = "(1),*,William,@,(2),*,12/10/2008***(1),*,jack,@,(2),*,10/10/2008"; $numbers='96622222222222,96622222222222'; $result=$sms->sendMsgWK($msg,$numbers,'aljauoni',$msgKey,'12:00:00','12/27/2017',0,'deleteKey','curl'); ?>
Balance Inquiry
You can inquire about mobily account balance through this portal by adding mobile number or Api KEY , this portal sends and returns JSON data and the following example shows how to use this portal :
<?php require_once('MobilySms.php'); //use Mobily; $sms = new MobilySms('user name','password','ApiKEY'); $result=$sms->balance('curl'); ?>
Forget Password
You can retrieve the mobily account password through this portal by adding the mobile number or Api KEY to retrieve its password and the way to send the password either on the mobile number or on the email of the account, and this portal sends and returns data from JSON Type The following example shows how to use this portal:
<?php require_once('MobilySms.php'); //use Mobily; // you must insert just user name or ApiKEY $sms = new MobilySms('user name','password','ApiKEY'); // 1: that means send password to account mobile $result=$sms->forgetPassword(1,'ar','curl'); // or you can use // 2: that means send password to account email $result=$sms->forgetPassword(2,'ar','curl'); ?>
Change Password
You can change the password for mobily account through this portal by adding the mobile number or Api KEY to change its password and old and new password, and this portal sends and returns data of type JSON. , And as an example of the required data:
<?php require_once('MobilySms.php'); //use Mobily; $sms = new MobilySms('user name','password','ApiKEY'); $result=$sms->changePassword('111','123','curl'); ?>
Documentation
The documentation for the mobily.ws Api is located here.
The PHP library documentation can be found here.
Versions
Mobily-api's versioning strategy can be found here.
Prerequisites
- PHP >= 5.3
- The PHP JSON extension
Getting help
If you need help installing or using the library, please contact Mobily.ws Support at help@mobily.ws first. mobily Support staff are well-versed in all of the mobily.ws Helper Libraries, and usually reply within 24 hours.
If you've instead found a bug in the library or would like new features added, go ahead and open issues or pull requests against this repo!
mobily-ws/api 适用场景与选型建议
mobily-ws/api 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 5.24k 次下载、GitHub Stars 达 1, 最近一次更新时间为 2017 年 07 月 13 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「api」 「sms」 「mobily.ws」 「mobily」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mobily-ws/api 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mobily-ws/api 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mobily-ws/api 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A package to send SMS using Mobily.ws API
A PSR-7 compatible library for making CRUD API endpoints
SDK for payment gateway PlatbaMobilom.sk for PHP7.0
Extensible library for building notifications and sending them via different delivery channels.
A package to send SMS using Mobily.ws API
yii2-sms expand
统计信息
- 总下载量: 5.24k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 18
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-13