christophedlr / pjsonobject
pjsonobject is an library for manage JSON document to PHP object and PHP object to JSON document
1.0.0
2019-12-20 11:20 UTC
Requires
- php: ^7.2|^7.3|^7.4
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-01-20 23:18:40 UTC
README
Install
Type composer require christophedlr/pjsonobject
or clone the repository.
Usage
jsonToObject method requiered two arguments : JSON document and classname. This method return a new classname object containing the JSON document.
objectToJson method requiered one argument : a class containing the informations. This method return a JSON document contaning the content of class.