mmccook / php-json-canonicalization-scheme
This is my package php-json-canonicalization-scheme
Fund package maintenance!
mmccook
Installs: 3 506
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 3
Requires
- php: ^8.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- pestphp/pest: ^1.20
- phpstan/phpstan: ^1.10
- spatie/ray: ^1.28
This package is auto-updated.
Last update: 2025-03-09 19:29:25 UTC
README
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.