Greetings
Some time ago
Yastrebon published the found feature of sending sms \ mms through the Megafon gateway. And send from your number and pay from your own account (including various bonus programs and packages).
I had free time and I decided to write a wrapper library on this service.
')
You can download it
yourself On the githaba from the repository
Usage example
$myNumber = '79274445566'; $myPassword = 'my-serviceguide-password'; $recipientNumber = '79274445577'; $text = ' '; $c = new OMS(new OMS_User($myNumber,$myPassword), 'https://sms.megafon.ru/oms/service.asmx', 'https://www.intellisoftware.co.uk/smsgateway/oms/oms.asmx?WSDL' ); $m = new OMS_Message(new OMS_Body_SMS($text),$recipientNumber); $c->DeliverXms($m);
(By the way, it is not clear why, but I cannot programmatically get WSDL from the server of MegaFon (apparently, headers like browser should be sent), so I pulled the description of the service from a similar service)
There are several points to pay attention to:
- Messages do not go abroad (* sad *) and paid / entertainment services
- MMS support is not implemented, but it will perfectly fit into the structure if anyone needs it
- Verification of correspondence of sent messages to restrictions imposed by the gateway - not yet implemented