paragonie / iaso
This package is abandoned and no longer maintained.
No replacement package was suggested.
Powerful JSON Toolkit, includes a JSON parser immune to Hash-DoS attacks
v0.1.0
2017-03-27 05:21 UTC
Requires
- php: ^7
- paragonie/constant_time_encoding: ^2
- paragonie/sodium_compat: ^0|^1
Requires (Dev)
- phpunit/phpunit: ^6
- vimeo/psalm: dev-master
This package is auto-updated.
Last update: 2022-02-01 13:06:20 UTC
README
Iaso is a powerful JSON toolkit for PHP 7+, intended for any organization that builds or consumes JSON-based APIs.
Iaso was developed by Paragon Initiative Enterprises to allow projects to build APIs without being vulnerable to hash-collision denial of service attacks from PHP's JSON functions.
Features
- HDoS resistant data structure (
ResultSet
) - Basic JSON parser (returns
ResultSet
objects)Assoc
is a JSON objectOrdered
is a JSON array
Roadmap
- Contract-enforced JSON parser
- Allows strict types, data limits
- Throws an exception if any violations are found
Usage Examples
Simple JSON Parsing
use ParagonIE\Iaso\JSON; use ParagonIE\Iaso\ResultSet; $data = JSON::parse($string); var_dump($data instanceof ResultSet); /* bool(true) */