obf/json

The Opsbears Framework JSON Components

v1.1.3 2016-03-15 12:12 UTC

This package is not auto-updated.

Last update: 2020-06-22 06:29:55 UTC


README

Build Status Coverage Status Scrutinizer Code Quality Latest Stable Version License

This JSON component is a wrapper around the PHP JSON functionality and converts JSON errors to exceptions.

Documentation

The API documentation is available at opsbears.github.io/obf-json.

Requirements

Since the OBF JSON uses namespaces, the minimum required PHP version is 5.3.0. It supports JSON functions from PHP up to and including PHP 7.0.

The JSON module depends on OBF Lang and OBF Classloader

Usage

Composer

If you are using composer, you can pull in the JSON as a dependency doing this:

composer require obf/json

Manual loading

If you are using an own dependency manager, you will need to observe the dependencies outlined in the requirements section. You will need to load the OBF classloader, then add classpaths to all dependencies before you use the JSON component.

For more information about using the classloader, see the appropriate GitHub repository