zendframework/zend-json
Convenience utilities for encoding PHP data to JSON and decoding JSON back to native types, including helpers for advanced cases. Note: this Zend Framework repository was abandoned on 2019-12-31; development continues as laminas/laminas-json.
Version 3 is the first significant departure in the zend-json API. In particular, it features the removal of two features to new packages.
The Zend\Json\Server subcomponent was extracted to a new component,
zend-json-server. Install it
using:
$ composer install zendframework/zend-json-server
All classes and functionality remain the same as in previous versions of zend-json.
v2 releases of zend-json provided Zend\Json\Json::fromXml(), which could be
used to convert an XML document to JSON. This functionality has been extracted
to a new component, zend-xml2json.
Install it using:
$ composer install zendframework/zend-xml2json
In order to use the functionality, you will need to modify your calls from
Zend\Json\Json::fromXml() to instead use Zend\Xml2Json\Xml2Json::fromXml().
How can I help you explore Laravel packages today?