obf / json
The Opsbears Framework JSON Components
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 3 104
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- ext-json: *
- obf/classloader: ^1.0
- obf/foundation: ^0.9.0
Requires (Dev)
- opsbears/coverage-reporter: ^0.0.3
- phpunit/phpunit: 3.7.*
This package is not auto-updated.
Last update: 2020-06-22 06:29:55 UTC
README
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