NoccyLabs

NoccyLabs develops open source libraries and software. With many projects ongoing, this organization contains public content repositories, as well as software and components considered stable.

noccylabs/pson (0.1.0)

Published 2026-05-15 23:18:34 +00:00 by noccy

Installation

{
	"repositories": [{
			"type": "composer",
			"url": "https://dev.noccylabs.info/api/packages/noccylabs/composer"
		}
	]
}
composer require noccylabs/pson:0.1.0

About this package

A packed serialized object notation for efficient transfer of JSON-compatible structures

Packed Serialized Object Notation (PSON)

This is a reference implementation as well as the specification for a binary serialization format that is JSON compatible.

It was created in order to efficiently pack structures to be sent over UDP.

Usage

// Turn your data into a binary blob
$packed = NoccyLabs\Pson\Pson::encode($data);
// Turn a binary blob back into data
$data = NoccyLabs\Pson\Pson::decode($packed);

Dependencies

Development Dependencies

ID Version
phpunit/phpunit ^13.1
Details
Composer
2026-05-15 23:18:34 +00:00
2
Christopher Vagnetoft
GPL-2.0-or-later
12 KiB
Assets (1)
Versions (1) View all
0.1.0 2026-05-15