PHPackages                             satheez/php-payload - 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. satheez/php-payload

ActiveComposer-plugin[Utility &amp; Helpers](/categories/utility)

satheez/php-payload
===================

Useful for transferring data in a formatted structure

v1.0(3y ago)00MITPHPPHP ^7.0|^8.0CI failing

Since Jul 7Pushed 9mo ago1 watchersCompare

[ Source](https://github.com/Satheez/php-payload)[ Packagist](https://packagist.org/packages/satheez/php-payload)[ RSS](/packages/satheez-php-payload/feed)WikiDiscussions main Synced 3w ago

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

PHP Payload data class
======================

[](#php-payload-data-class)

You can build data with any format, extract and send to any other server. Then can rebuild and retrieve by exactly the data key that was being used to build it without any issues

### Installation

[](#installation)

You can pull the package via composer :

```
composer require satheez/php-payload
```

### Usage

[](#usage)

```
// Build & export the added data:
$payload = new \Php\Data\Payload();
$payload->add('animal.dog.name', 'Zoe');
$payload->add('animal.dog.age', 8);

$payload->add('animal.cat', [
    'name' => 'Snowy',
    'age' => 3
]);

$data = $payload->export();// Exported data

// Import and retrieve the data:
// Method 1:
$payload1 = new \Php\Data\Payload($data);

// Method 2:
$payload2 = new \Php\Data\Payload();
$payload2->import($data);

// Retrieve
$dog = $payload1->get('animal.dog.name'); // Zoe
```

### Testing

[](#testing)

```
> ./vendor/bin/phpunit tests
```

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance40

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% 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

Unknown

Total

1

Last Release

1456d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6590c21841f4323f7322cb865bc535b1b58b00b636aba0c3bcc08a1b1f53819c?d=identicon)[Satheez](/maintainers/Satheez)

---

Top Contributors

[![satheez](https://avatars.githubusercontent.com/u/11453046?v=4)](https://github.com/satheez "satheez (3 commits)")[![Satheez](https://avatars.githubusercontent.com/u/11453046?v=4)](https://github.com/Satheez "Satheez (3 commits)")

---

Tags

datapayloaddata-classdata-transfer

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/satheez-php-payload/health.svg)

```
[![Health](https://phpackages.com/badges/satheez-php-payload/health.svg)](https://phpackages.com/packages/satheez-php-payload)
```

###  Alternatives

[fakerphp/faker

Faker is a PHP library that generates fake data for you.

4.0k390.0M4.5k](/packages/fakerphp-faker)[dflydev/dot-access-data

Given a deep data structure, access data by dot notation.

722393.7M110](/packages/dflydev-dot-access-data)[mbezhanov/faker-provider-collection

A collection of custom providers for the Faker library

2179.4M25](/packages/mbezhanov-faker-provider-collection)[php-units-of-measure/php-units-of-measure

A PHP library for converting between standard units of measure.

3143.8M36](/packages/php-units-of-measure-php-units-of-measure)[amenadiel/jpgraph

Composer Friendly, full refactor of JpGraph, library to make graphs and charts

1532.4M7](/packages/amenadiel-jpgraph)[jbzoo/data

An extended version of the ArrayObject object for working with system settings or just for working with data arrays

851.6M23](/packages/jbzoo-data)

PHPackages © 2026

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