Skip to content

Sets of PHP classes build to send SMS thru gates i.e. MultiInfo

Notifications You must be signed in to change notification settings

Bombaharris/php-sms-classes

Repository files navigation

php-sms-classes

Sets of PHP classes build to cooperate with SMS Gate services.

MultiInfo Example

Sending SMS:

require '../SMSMultiInfoClass.php';

$Gate = new SMSMultiInfo ();
$Gate->setGateURL('https://api1.multiinfo.plus.pl/')
        ->setGateUser('username')
        ->setGatePassword('password')
        ->setGateServiceId('1')
        ->setSslCertPath('/path/to/cert/file')
        ->setSslCertPass('cert_password')
        ->setNumberPrefix(48)
        ->setTelephoneNumber(111111111)
        ->setOriginator('ORIGINATOR')
        ->setText('Hello World!');
$Gate->send();
echo $Gate;

Mobiltek Example

Sending SMS:

require '../SMSMobiltekClass.php';

$Gate = new SMSMobiltek();
$Gate->setGateURL('https://gw2.mobiltek.pl/api/')
        ->setGateUser('user')
        ->setGatePassword('password')
        ->setGateServiceId('1')
        ->setNumberPrefix(48)
        ->setTelephoneNumber(111111111111)
        ->setOriginator('ORIGINATOR')
        ->setAdvancedEncoding(true)
        ->setSMSId(mt_rand(1, 10000000000))
        ->setText('Hello World!');
$Gate->send();
echo $Gate;

About

Sets of PHP classes build to send SMS thru gates i.e. MultiInfo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages