PHPackages                             ck/marcspec-test-suite - 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. [Validation &amp; Sanitization](/categories/validation)
4. /
5. ck/marcspec-test-suite

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

ck/marcspec-test-suite
======================

A Testsuite for MARCspec parsers

v0.3(8y ago)0284[2 issues](https://github.com/MARCspec/MARCspec-Test-Suite/issues)1MITPHP

Since Nov 28Pushed 8y ago1 watchersCompare

[ Source](https://github.com/MARCspec/MARCspec-Test-Suite)[ Packagist](https://packagist.org/packages/ck/marcspec-test-suite)[ RSS](/packages/ck-marcspec-test-suite/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (2)Used By (1)

MARCspec Test Suite
===================

[](#marcspec-test-suite)

This repository contains a set of JSON objects that developers of MARCspec parser libraries can use to test their implementations.

Overview
--------

[](#overview)

Tests are divided into valid and invalid. Thus there are two directories valid/ and invalid/.

Each directory contains multiple `.json` files and each file contains one root JSON object with multiple test objects.

The filenames might give you a hint on which tests are covered. The files starting with `wildCombination_` are (wild) combinations of the test data in the files starting with `valid` or `invalid`.

JSON structure
--------------

[](#json-structure)

Each root JSON object contains an object with the description, a schema to validate against and some tests. Each test is an object itself with a description, the test data and a validation statement (true or false).

Here is an example of teh content of a `.json` file

```
{
    "description": "field tags are strings and match pattern",
    "schema": {
      "type": "string",
      "pattern": "^([.a-z0-9]{3,3}|[.A-Z0-9]{3,3})$"
    },
    "tests": [
        {
            "description": "all wildcards",
            "data": "...",
            "valid": true
        },
        {
            "description": "two wildcards left with digit",
            "data": "..0",
            "valid": true
        },
        {
            "description": "one wildcard left with two digits",
            "data": ".00",
            "valid": true
        }
    ]
}
```

About Tests
-----------

[](#about-tests)

Not every file contains complete MARCspec references. Only the files starting with `wildCombination_` and the files `*FieldTag.json` does.

The other files:

- \*ComparisonString.json
- \*Indicators.json
- \*PositionOrRange.json
- \*SubfieldRange.json
- \*SubfieldTag.json
- \*SubSpec.json

contain either valid or invalid fragments of MARCspec references. This makes it easy to test distinct functionalities (e.g. a ComparisonString paser).

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

3093d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/23064ee47ef1ea033e3068dc2e1bafb1f1a07c3ddfc3a060010145ba90bc95ed?d=identicon)[collidoscope](/maintainers/collidoscope)

---

Top Contributors

[![cKlee](https://avatars.githubusercontent.com/u/849235?v=4)](https://github.com/cKlee "cKlee (17 commits)")

---

Tags

validatortestsmarcMARCspec

### Embed Badge

![Health badge](/badges/ck-marcspec-test-suite/health.svg)

```
[![Health](https://phpackages.com/badges/ck-marcspec-test-suite/health.svg)](https://phpackages.com/packages/ck-marcspec-test-suite)
```

###  Alternatives

[respect/validation

The most awesome validation engine ever created for PHP

5.9k37.4M383](/packages/respect-validation)[seld/jsonlint

JSON Linter

1.3k217.8M205](/packages/seld-jsonlint)[composer/spdx-licenses

SPDX licenses list and validation library.

1.4k184.2M25](/packages/composer-spdx-licenses)[opis/json-schema

Json Schema Validator for PHP

64736.9M186](/packages/opis-json-schema)[vlucas/valitron

Simple, elegant, stand-alone validation library with NO dependencies

1.6k4.4M128](/packages/vlucas-valitron)[intervention/validation

Additional validation rules for the Laravel framework

6826.7M8](/packages/intervention-validation)

PHPackages © 2026

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