christophedlr / pjsonobject
pjsonobject is an library for manage JSON document to PHP object and PHP object to JSON document
Installs: 5
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/christophedlr/pjsonobject
Requires
- php: ^7.2|^7.3|^7.4
Requires (Dev)
- phpunit/phpunit: ^8.5
This package is auto-updated.
Last update: 2025-10-21 00:57:18 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.