2017 © Pedro Peláez
 

library json-parser

A PHP JSON parser with Error Control

image

midnite81/json-parser

A PHP JSON parser with Error Control

  • Monday, May 14, 2018
  • by midnite81
  • Repository
  • 1 Watchers
  • 0 Stars
  • 5 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 25 % Grown

The README.md

JsonParser for PHP Latest Stable Version Total Downloads Latest Unstable Version License Build Coverage Status

This package allows for Error Handling while encoding and decoding JSON., (*1)

To install through composer include the package in your composer.json., (*2)

"midnite81/json-parser": "^1.0.0"

Run composer install or composer update to download the dependencies or you can run composer require midnite81/json-parser., (*3)

Example usage

use Midnite81\JsonParser\JsonParse;

public function returnData() 
{ 
    // your encoded data 
    $myData = '{"message":"Hello World"}'; 

    try { 
        JsonParse::decode($myData);
    } catch (JsonException $e) { 
        die('Something went wrong: ' . $e->getMessage());
    }
}

The Versions

14/05 2018

dev-master

9999999-dev

A PHP JSON parser with Error Control

  Sources   Download

MIT

The Development Requires

by Simon Rogers

14/05 2018

v1.0.0

1.0.0.0

A PHP JSON parser with Error Control

  Sources   Download

MIT

The Development Requires

by Simon Rogers