PHPackages                             jackkum/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. jackkum/phppdu

ActiveLibrary

jackkum/phppdu
==============

Creating pdu string for sending sms.

v1.2.11(5mo ago)105.4k7[2 issues](https://github.com/jackkum/PHPPDU/issues)3MITPHPPHP &gt;=7.4

Since Jun 5Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/jackkum/PHPPDU)[ Packagist](https://packagist.org/packages/jackkum/phppdu)[ RSS](/packages/jackkum-phppdu/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (16)Used By (3)

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

50

—

FairBetter than 96% of packages

Maintenance69

Regular maintenance activity

Popularity29

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 98.2% 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 ~296 days

Recently: every ~958 days

Total

14

Last Release

152d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2418167?v=4)[Jack](/maintainers/jackkum)[@jackkum](https://github.com/jackkum)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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