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

ActiveComposer-plugin

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

Useful for transferring data in a formatted structure

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

Since Jul 7Pushed 8mo 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 1w 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 49% of packages

Maintenance43

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1410d 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)")

---

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.

3.9k358.5M3.5k](/packages/fakerphp-faker)[nelmio/alice

Expressive fixtures generator

2.5k43.4M133](/packages/nelmio-alice)[dflydev/dot-access-data

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

718359.1M86](/packages/dflydev-dot-access-data)[doctrine/mongodb-odm

PHP Doctrine MongoDB Object Document Mapper (ODM) provides transparent persistence for PHP objects to MongoDB.

1.1k23.3M302](/packages/doctrine-mongodb-odm)[theofidry/alice-data-fixtures

Nelmio alice extension to persist the loaded fixtures.

32528.5M70](/packages/theofidry-alice-data-fixtures)[mbezhanov/faker-provider-collection

A collection of custom providers for the Faker library

2138.6M24](/packages/mbezhanov-faker-provider-collection)

PHPackages © 2026

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