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 3d 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 37% 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

2560d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/02fd1f9468ab619fac88924af0fed2d5e5f3787a77edc6ad759b8cc566a769f0?d=identicon)[phpbenchmarks](/maintainers/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

[mtdowling/jmespath.php

Declaratively specify how to extract elements from a JSON document

2.0k472.8M135](/packages/mtdowling-jmespathphp)[opis/closure

A library that can be used to serialize closures (anonymous functions) and arbitrary data.

2.6k230.0M284](/packages/opis-closure)[masterminds/html5

An HTML5 parser and serializer.

1.8k242.8M229](/packages/masterminds-html5)[sabberworm/php-css-parser

Parser for CSS Files written in PHP

1.8k191.2M65](/packages/sabberworm-php-css-parser)[michelf/php-markdown

PHP Markdown

3.5k52.4M345](/packages/michelf-php-markdown)[jms/metadata

Class/method/property metadata management in PHP

1.8k152.8M88](/packages/jms-metadata)

PHPackages © 2026

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