PHP text message PEAR package: Services_Sms

Source: Internet
Author: User

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/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 ):

<? 'Services/Sms. php '= 'spid' => 'foo', 'sppassword' => 'bar', 'apiuriprefix' => 'HTTP: // esms.etonenet.com /', = Services_Sms ('etonenet ', =-> send ('20140901', 'Hello! Mr. etonenet '(?>

Source code: https://github.com/sinkcup/Services_Sms

Sinkcup PEAR channel: http://sinkcup.github.io/pear/

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.