1
0
Fork
You've already forked php-jcs
0
forked from streams/php-jcs
fork of mmccook/php-json-canonicalization-scheme
  • PHP 100%
2024年03月12日 21:28:59 +11:00
.github initial commit 2023年08月04日 09:22:50 -06:00
src fix floats 2024年03月12日 21:16:49 +11:00
tests Merge branch 'main' of https://github.com/mmccook/php-json-canonicalization-scheme 2023年08月04日 17:37:01 -06:00
.editorconfig Initial commit 2023年08月03日 15:02:12 -06:00
.gitattributes Initial commit 2023年08月03日 15:02:12 -06:00
.gitignore Initial commit 2023年08月03日 15:02:12 -06:00
.php-cs-fixer.dist.php Initial commit 2023年08月03日 15:02:12 -06:00
CHANGELOG.md initial commit 2023年08月04日 09:22:50 -06:00
composer.json change composer path 2024年03月12日 21:28:59 +11:00
LICENSE.md initial commit 2023年08月04日 09:22:50 -06:00
phpunit.xml.dist initial commit 2023年08月04日 09:22:50 -06:00
README.md updated README 2023年08月07日 12:01:19 -06:00

JSON Canonicalization for PHP 8.1+

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.