PHPackages                             jeroen/json-dump-data - 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. [Debugging &amp; Profiling](/categories/debugging)
4. /
5. jeroen/json-dump-data

ActiveLibrary[Debugging &amp; Profiling](/categories/debugging)

jeroen/json-dump-data
=====================

Wikibase JSON dump data for testing

1.0.0(10y ago)26091GPL-2.0+PHPPHP &gt;=5.3.0

Since Oct 22Pushed 10y ago1 watchersCompare

[ Source](https://github.com/JeroenDeDauw/JsonDumpData)[ Packagist](https://packagist.org/packages/jeroen/json-dump-data)[ RSS](/packages/jeroen-json-dump-data/feed)WikiDiscussions master Synced 3w ago

READMEChangelogDependenciesVersions (3)Used By (1)

JsonDumpData
============

[](#jsondumpdata)

[![Build Status](https://camo.githubusercontent.com/9e8e8ace8e1d6f5eb628c1434a57faccfbff5b3c1ff3952f5667640109066cd4/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f4a65726f656e4465446175772f4a736f6e44756d70446174612e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/JeroenDeDauw/JsonDumpData)[![Download count](https://camo.githubusercontent.com/da6cd55449c92d8956995836876856b28e9ee2a1fcd763f3bbd9f0283f64930b/68747470733a2f2f706f7365722e707567782e6f72672f6a65726f656e2f6a736f6e2d64756d702d646174612f642f746f74616c2e706e67)](https://packagist.org/packages/jeroen/json-dump-data)[![Latest Stable Version](https://camo.githubusercontent.com/31e1c1261f2bd49916ecbb93a1498e56d32cb1c3cb80df8d3aea2f8662efa1a5/68747470733a2f2f706f7365722e707567782e6f72672f6a65726f656e2f6a736f6e2d64756d702d646174612f76657273696f6e2e706e67)](https://packagist.org/packages/jeroen/json-dump-data)

**JsonDumpData** holds extracts of [Wikibase](http://wikiba.se/) Repository JSON dumps.

Such extracts are often needed when testing code interacting with dumps and can also be useful to import realistic data into a test wiki. Adding the extracts to the VCS repository that holds the code needing them can unreasonably inflate its size. Loading this component via Composer works around that problem.

For more information on the JSON dump format, see the \[Wikidata database download page\] ([https://www.wikidata.org/wiki/Wikidata:Database\_download](https://www.wikidata.org/wiki/Wikidata:Database_download)).

Installation
------------

[](#installation)

To add this package as a local, per-project dependency to your project, simply add a dependency on `jeroen/json-dump-data` to your project's `composer.json` file. Here is a minimal example of a `composer.json` file that just defines a dependency on JsonDumpData 1.0:

```
{
    "require": {
        "jeroen/json-dump-data": "1.0.*"
    }
}
```

Usage
-----

[](#usage)

The dump extracts are stored in the `data` directory, and have stable paths. However, when using PHP, it is recommended to obtain the paths via the `JsonDumpData` class.

```
$dumpData = new JsonDumpData();
$dumpData->getFiveEntitiesDumpPath();
```

The methods in this class return the full path to the relevant file. These methods will return the path to the **most recent** copy of the data this library holds:

- getOneItemDumpPath
- getFiveEntitiesDumpPath
- getOneThousandEntitiesDumpPath
- getEmptyDumpPath

This means that new versions of the library can have these methods return paths to files with different content (though always adhering to the contract of the method). To get a fully **stable path** to a specific version, or to get one for an **older version**, you can use the methods with time qualification:

- getOneItemFrom2015DumpPath
- getFiveEntitiesFrom2014DumpPath
- ...

Dumps that are **compressed** can be accessed via the same methods, but then with their file extension before "DumpPath". Currently **bz2** (bzip2) and **gz** (gzip) are included.

- getFiveEntitiesBz2DumpPath
- getOneThousandEntitiesFrom2015GzDumpPath
- ...

Release notes
-------------

[](#release-notes)

### Version 1.0.0 (2015-11-11)

[](#version-100-2015-11-11)

- Added files from 2015-11-09 dump
- Added bz2 files
- Added gz files
- Added new path getters for the files from 2014

### Version 0.1.0 (2014-10-22)

[](#version-010-2014-10-22)

- Initial release

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Every ~384 days

Total

2

Last Release

3887d ago

Major Versions

0.1.0 → 1.0.02015-11-11

### Community

Maintainers

![](https://www.gravatar.com/avatar/451bd4039d530fed8f9c3da91bfa519233a397d2182cdfdcad700f6cfea19b7f?d=identicon)[Jeroen De Dauw](/maintainers/Jeroen%20De%20Dauw)

---

Top Contributors

[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (14 commits)")

---

Tags

jsondumpwikidatawikibase

### Embed Badge

![Health badge](/badges/jeroen-json-dump-data/health.svg)

```
[![Health](https://phpackages.com/badges/jeroen-json-dump-data/health.svg)](https://phpackages.com/packages/jeroen-json-dump-data)
```

###  Alternatives

[symfony/var-dumper

Provides mechanisms for walking through any arbitrary PHP variable

7.4k904.9M9.6k](/packages/symfony-var-dumper)[kint-php/kint

Kint - Advanced PHP dumper

2.9k20.6M305](/packages/kint-php-kint)[jeroen/json-dump-reader

Provides line-by-line readers and iterators for Wikibase/Wikidata JSON dumps

7612.8k](/packages/jeroen-json-dump-reader)[xrdebug/php

PHP client library for xrDebug

23824.8k3](/packages/xrdebug-php)[leeoniya/dump-r

a cleaner, leaner mix of print\_r() and var\_dump()

12368.9k5](/packages/leeoniya-dump-r)[jbzoo/jbdump

Script for debug and dump PHP variables and other stuff. This tool is a nice replacement for print\_r() and var\_dump() functions.

211.1M3](/packages/jbzoo-jbdump)

PHPackages © 2026

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