Search by

mmccook / php-json-canonicalization-scheme

mmccook

This is my package php-json-canonicalization-scheme

Package info

github.com/mmccook/php-json-canonicalization-scheme

pkg:composer/mmccook/php-json-canonicalization-scheme

Fund package maintenance!

mmccook

Statistics

Installs: 23 601

Dependents: 0

Suggesters: 0

Stars: 3

Open Issues: 3

1.0.0 2023-08-07 18:12 UTC

This package is auto-updated.

Last update: 2026-09-09 22:53:18 UTC


README

Latest Version on Packagist Tests Total Downloads

Needed a way to canonicalize JSON to validate webhooks from The Campaign Registry couldn't find an actively maintained package that all passed the JCS tests, so I used the one listed on the JCS Github and updated/refactored it.

Installation

You can install the package via composer:

composer require mmccook/php-json-canonicalization-scheme

Usage

$canonicalization = JsonCanonicalizatorFactory::getInstance();
$canonicalizedJsonString = $canonicalization->canonicalize($input);

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.