Download the PHP package xoubaman/json without Composer
On this page you can find all versions of the php package xoubaman/json. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download xoubaman/json
More information about xoubaman/json
Files in xoubaman/json
Download xoubaman/json
More information about xoubaman/json
Files in xoubaman/json
Please rate this library. Is it a good library?
Informations about the package json
JSON
A simple JSON wrapper class.
Features:
- Encode arrays|objects
- Decode JSON strings
- Validate JSON strings
- Throw exceptions on failure
Nothing else. As said, it is simple.
Usage
Json::encode($input): string: encodes into JSONJson::decode(string $json): array: decodes a JSON into an arrayJson::fromString(string $json): new Json instance$json->isValid(): bool: whether the provided JSON is valid or not$json->input(): string: the input used for instantiation$json->error(): string: the error description, empty if no error$json->errorCode(): int: the error code, JSON_ERROR_NONE if no error$json->asArray(): array: the input decoded, throws aRuntimeExceptionif not a valid JSON
All versions of json with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.3
ext-json Version *
ext-json Version *
The package xoubaman/json contains the following files
Loading the files please wait ...