Download the PHP package plumphp/plum-json without Composer
On this page you can find all versions of the php package plumphp/plum-json. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package plum-json
PlumJsons includes readers, writers and converters for JSON strings and files. Plum is a data processing pipeline
for PHP.
PlumJsons includes readers, writers and converters for JSON strings and files. Plum is a data processing pipeline for PHP.
Developed by Florian Eckerstorfer in Vienna, Europe.
Features
Readers
JsonFileReader
reads a.json
file from disk and decodes itJsonReader
decodes a JSON string
Writers
JsonFileWriter
encodes an object/array into JSON and saves it to diskJsonWriter
encodes an object/array into JSON and returns the string
Converters
JsonDecodeConverter
takes a JSON string and decodes itJsonEncodeConverter
takes an object/array and encodes it to JSON
Installation
You can install Plum using Composer.
Usage
Please refer to the Plum documentation for more information about Plum in general.
JsonReader
Plum\PlumJson\JsonReader
reads a JSON string. If you want to read a .json
file checkout
JsonFileReader.
JsonFileReader
Plum\PlumJson\JsonFileReader
reads a .json
file.
JsonFileWriter
Plum\PlumJson\JsonFileWriter
writes the items as JSON into a file.
It is essential that finish()
is called, because there happens the actual writing. The prepare()
method does
nothing.
JsonWriter
Plum\PlumJson\JsonWriter
converts the items into JSON format. Please checkout JsonFileWriter if you
want to write the JSON into a file.
JsonDecodeConverter
Plum\PlumJson\JsonDecodeConverter
uses Braincrafted\Json to decode JSON.
JsonEncodeConverter
Plum\PlumJson\JsonEncodeConverter
uses Braincrafted\Json to encode an object
into JSON.
Change Log
Version 0.3 (7 May 2015)
- Add
JsonDecodeConverter
- Add
JsonEncodeConverter
Version 0.2 (22 April 2015)
- Add support for ReaderFactory
Version 0.1 (17 February 2015)
- Initial release
License
The MIT license applies to plumphp/plum- json. For the full copyright and license information, please view the LICENSE file distributed with this source code.