PHPackages                             phpbenchmarks/benchmark-json-serialization-small-overload - 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. [Parsing &amp; Serialization](/categories/parsing)
4. /
5. phpbenchmarks/benchmark-json-serialization-small-overload

ActiveProject[Parsing &amp; Serialization](/categories/parsing)

phpbenchmarks/benchmark-json-serialization-small-overload
=========================================================

Data for serialization to a small JSON benchmark on phpbenchmarks.com.

1.0.0(7y ago)0227proprietaryPHPPHP &gt;=5.4.0

Since May 12Pushed 7y agoCompare

[ Source](https://github.com/phpbenchmarks/benchmark-json-serialization-small-overload)[ Packagist](https://packagist.org/packages/phpbenchmarks/benchmark-json-serialization-small-overload)[ RSS](/packages/phpbenchmarks-benchmark-json-serialization-small-overload/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

 [![](https://camo.githubusercontent.com/87570f78dc291d2bf670ce1f762efe02a70877c7923044c626f2df5213f8c3d6/687474703a2f2f7777772e70687062656e63686d61726b732e636f6d2f696d616765732f6c6f676f5f6769746875622e706e67)](https://camo.githubusercontent.com/87570f78dc291d2bf670ce1f762efe02a70877c7923044c626f2df5213f8c3d6/687474703a2f2f7777772e70687062656e63686d61726b732e636f6d2f696d616765732f6c6f676f5f6769746875622e706e67)
 [www.phpbenchmarks.com](http://www.phpbenchmarks.com)

What is [www.phpbenchmarks.com](http://www.phpbenchmarks.com)?
--------------------------------------------------------------

[](#what-is-wwwphpbenchmarkscom)

You will find lot of benchmarks for PHP frameworks and template engines.

You can compare results between Apache Bench and Siege, PHP 5.6 to 7.3 and versions of your favorites PHP code.

What is this repository?
------------------------

[](#what-is-this-repository)

It's dependency for [small JSON serialization](http://www.phpbenchmarks.com/en/documentation/benchmark/json-serialization-small-overload) benchmark.

You can find how we benchmark it on [benchmarking protocol page](http://www.phpbenchmarks.com/en/documentation/benchmarking-protocol).

Retrieve data to serialize
--------------------------

[](#retrieve-data-to-serialize)

```
use PhpBenchmarks\BenchmarkJsonSerializationSmallOverload\BenchmarkService;

BenchmarkService::getDataToSerialize();
```

Validation of serialization
---------------------------

[](#validation-of-serialization)

As serialization don't need to write anything to response body, when we validate your serialization we add a parameter into query string to indicate you need to write serialization result into response body.

```
use PhpBenchmarks\BenchmarkJsonSerializationSmallOverload\BenchmarkService;

// Write serialized data to response body if isWriteToResponseBody() return true, to validate it.
if (BenchmarkService::isWriteToResponseBody()) {
    echo $serializer->serialize(BenchmarkService::getDataToSerialize());

// Only serialize data if isWriteToResponseBody() return false, to benchmark it.
} else {
    $serializer->serialize(BenchmarkService::getDataToSerialize());
}
```

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity54

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

2608d ago

### Community

Maintainers

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

---

Top Contributors

[![steevanb](https://avatars.githubusercontent.com/u/5063383?v=4)](https://github.com/steevanb "steevanb (2 commits)")

---

Tags

benchmarkjsonphpserializationserializer

### Embed Badge

![Health badge](/badges/phpbenchmarks-benchmark-json-serialization-small-overload/health.svg)

```
[![Health](https://phpackages.com/badges/phpbenchmarks-benchmark-json-serialization-small-overload/health.svg)](https://phpackages.com/packages/phpbenchmarks-benchmark-json-serialization-small-overload)
```

###  Alternatives

[mck89/peast

Peast is PHP library that generates AST for JavaScript code

19139.2M45](/packages/mck89-peast)[sauladam/shipment-tracker

Parses tracking information for several carriers, like UPS, USPS, DHL and GLS by simply scraping the data. No need for any kind of API access.

9843.5k](/packages/sauladam-shipment-tracker)[moonshine/layouts-field

Field for repeating groups of fields for MoonShine

108.5k](/packages/moonshine-layouts-field)[tcds-io/php-jackson

A lightweight, flexible object serializer for PHP, inspired by FasterXML/jackson

113.2k10](/packages/tcds-io-php-jackson)

PHPackages © 2026

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