b-hayes/json

Runs any PHP Class as a command line application

v0.1.1 2022-09-09 14:31 UTC

This package is auto-updated.

Last update: 2024-11-10 12:17:00 UTC


README

A very basic JSON class for common tasks. Basically a wrapper for php's standard encoding/decoding but using the JSON_THROW_EXCEPTION option so that invalid json always throws an exception. Comes with some other things like applying the contents of JSON string to an object as properties so you can get code hints for common json responses by pseudo typ-casting them into a DTO.

Plans for improving later but jsut want this as a package to install with other projects.