PHP text message PEAR package: Services_Sms for this third-party library, which is officially called PEAR by PHP and needs to be developed according to the PEAR standard (Standard URI ). PEAR advantages: one-click installation to the phplibphp directory, require can be used, very convenient. Because the project needs to send text messages, I have developed one, which is now open-source. The installation procedure is as follows: pe
PHP text message PEAR package: Services_Sms for this third-party library, which is officially called PEAR by PHP and needs to be developed according to the PEAR standard (Standard URI ). PEAR advantages: one-click installation to the php/lib/php Directory, require can be used, very convenient. Because the project needs to send text messages, I have developed one, which is now open-source. The installation procedure is as follows: pe
PHP text message PEAR package: Services_Sms
For this third-party library, PHP officially calls it PEAR and needs to be developed according to the PEAR standard (Standard URI ).
PEAR advantages: one-click installation to the php/lib/php Directory, require can be used, very convenient.
Because the project needs to send text messages, I have developed one, which is now open-source. The installation procedure is as follows:
pear channel-discover sinkcup.github.io/pearpear install sinkcup/Services_Sms
0.0.1 supports the following text message service providers:
Mobile Network: http://www.etonenet.com/
SMS: http://smsbao.com/
Infinite mutual: http://ihuyi.com/
Procedure:
1, to the text message service provider website to register an account, such as mobile network (http://www.etonenet.com /).
2, demo (reference https://github.com/sinkcup/Services_Sms/blob/master/tests/Services/SmsTest.php ):
'Foo', 'sppassword' => 'bar', 'apiuriprefix' => 'HTTP: // esms.etonenet.com/',); $ c = new Services_Sms ('etonenet ', $ conf); $ r = $ c-> send ('20140901', 'Hello! Mr. Tree etonenet '); var_dump ($ r); exit;?>
Source code: https://github.com/sinkcup/Services_Sms
Sinkcup PEAR channel: http://sinkcup.github.io/pear/