PHPackages                             rmoore/phppdu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. rmoore/phppdu

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rmoore/phppdu
=============

Creating pdu string for sending sms.

v1.3.01(8y ago)03591MITPHP

Since Jun 5Pushed 8y ago1 watchersCompare

[ Source](https://github.com/RMoorePHP/PHPPDU)[ Packagist](https://packagist.org/packages/rmoore/phppdu)[ RSS](/packages/rmoore-phppdu/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)Dependencies (1)Versions (19)Used By (1)

PHPPDU [![Build Status](https://camo.githubusercontent.com/7de10a506c80e708a06eb27f301e83f7d9c8df5aaa6aa2720e84b4d657fb51e5/68747470733a2f2f7472617669732d63692e6f72672f6a61636b6b756d2f5048505044552e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jackkum/PHPPDU) [![Code Climate](https://camo.githubusercontent.com/fc5a9c1d7876d0f716ad76c07f3f45f73a4a7f491416c0ea0a20e32bf6ed4430/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6a61636b6b756d2f5048505044552f6261646765732f6770612e737667)](https://codeclimate.com/github/jackkum/PHPPDU)
===============================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#phppdu--)

Creating a PDU string for sending sms

Usage
=====

[](#usage)

composer require jackkum/phppdu

---

```
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;
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~61 days

Recently: every ~218 days

Total

17

Last Release

3016d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8243df9773b1b9e468455f666b7e0c079a94f022bec77666bb474ed265e6da33?d=identicon)[rs-sliske](/maintainers/rs-sliske)

---

Top Contributors

[![jackkum](https://avatars.githubusercontent.com/u/2418167?v=4)](https://github.com/jackkum "jackkum (107 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rmoore-phppdu/health.svg)

```
[![Health](https://phpackages.com/badges/rmoore-phppdu/health.svg)](https://phpackages.com/packages/rmoore-phppdu)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
