2017 © Pedro Peláez
 

library phppdu

Creating pdu string for sending sms.

image

jackkum/phppdu

Creating pdu string for sending sms.

  • Tuesday, September 22, 2015
  • by jackkum
  • Repository
  • 1 Watchers
  • 6 Stars
  • 1,727 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 2 Forks
  • 0 Open issues
  • 15 Versions
  • 11 % Grown

The README.md

PHPPDU Build Status Code Climate

Creating a PDU string for sending sms, (*1)

Usage

composer require jackkum/phppdu, (*2)


require_once './vendor/autoload.php';

use jackkum\PHPPDU\Submit;

$pdu = new Submit();

$pdu->setAddress("*********");
$pdu->setData("Message to sent.");

foreach($pdu->getParts() as $part){
    echo get_class($part), PHP_EOL;
    echo (string) $part, PHP_EOL;
}

require_once './vendor/autoload.php';

use jackkum\PHPPDU\PDU;

$pdu = PDU::parse($str);

echo $pdu->getAddress()->getPhone(), PHP_EOL;

foreach($pdu->getParts() as $part){
    $header = $part->getHeader();
    echo "unique: ", $header->getPointer(), PHP_EOL;
    echo $header->getCurrent(), " of ", $header->getSegments(), PHP_EOL;
}

echo $tmp->getData()->getData(), PHP_EOL;


require_once './vendor/autoload.php';

use jackkum\PHPPDU\PDU;

$main = NULL;

foreach(self::$lines as $line){
    if(is_null($main)){
        $main = PDU::parse($line);
    } else {
        $main->getData()->append(
            PDU::parse($line)
        );
    }

}

echo $main->getData()->getData(), PHP_EOL;

The Versions

22/09 2015

dev-master

9999999-dev

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

22/09 2015

v1.2.10

1.2.10.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

22/09 2015

dev-dev

dev-dev

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

22/06 2015

v1.2.9

1.2.9.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

21/06 2015

v1.2.8

1.2.8.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

18/06 2015

v1.2.7

1.2.7.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

18/06 2015

v1.2.6

1.2.6.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

16/06 2015

v1.2.5

1.2.5.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

16/06 2015

v1.2.4

1.2.4.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

16/06 2015

v1.2.3

1.2.3.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

16/06 2015

v1.2.2

1.2.2.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

10/06 2015

v1.2.1

1.2.1.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

10/06 2015

v1.2

1.2.0.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

10/06 2015

v1.1

1.1.0.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin

05/06 2015

v1.0

1.0.0.0

Creating pdu string for sending sms.

  Sources   Download

MIT

The Development Requires

by Evgenii Kumanin