PHPackages                             rtablada/ibm-data-struct - 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. rtablada/ibm-data-struct

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

rtablada/ibm-data-struct
========================

A quick library for creating string length data structures to communicate with IBM services

032PHP

Since Feb 12Pushed 12y ago1 watchersCompare

[ Source](https://github.com/rtablada/ibm-data-struct)[ Packagist](https://packagist.org/packages/rtablada/ibm-data-struct)[ RSS](/packages/rtablada-ibm-data-struct/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

IBM Data Struct Library
-----------------------

[](#ibm-data-struct-library)

When communicating with IBM based web services you may be required to create data structures represented by strings of varied lengths. This can be a bit tedious to have to remember string lengths and various requirements and create these data structures from varied inputs.

This library gives you a simple API for creating these structures in a manageable and configurable way.

Installation
------------

[](#installation)

This library can be installed using composer and requiring `rtablada/ibm-data-struct`.

Use
---

[](#use)

To create a data structure and get the string representation you just need to pass a set of input values and rules to create the structure. The rules will be parsed in order to create the string. If a rule is not defined as a map, then the default mutation of length will be used.

```
$values = [
	'name_long' => 'Ryan Tablada',
	'name_short' => 'Ryan Tablada',
];

$rules = [
	'name_short' => 22, // Pad length to take up 22 chars
	'name_long' => ['length' => 10], // Trim to 10 chars
];

$structure = new Rtablada\IbmDataStruct\IbmStructBuilder($values, $rules);

$stringValue = (string) $structure;
$stringValue = $structure->getString();
```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/ea9ccd400c74151601341e320935a31d1a9779c5eb49a8f364bc7a0ac75baa32?d=identicon)[rtablada](/maintainers/rtablada)

---

Top Contributors

[![rtablada](https://avatars.githubusercontent.com/u/2532004?v=4)](https://github.com/rtablada "rtablada (13 commits)")

### Embed Badge

![Health badge](/badges/rtablada-ibm-data-struct/health.svg)

```
[![Health](https://phpackages.com/badges/rtablada-ibm-data-struct/health.svg)](https://phpackages.com/packages/rtablada-ibm-data-struct)
```

PHPackages © 2026

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