How To Install php-netresearch-jsonmapper on Fedora 36
Introduction
In this tutorial we learn how to install php-netresearch-jsonmapper
on Fedora 36.
What is php-netresearch-jsonmapper
Takes data retrieved from a JSON web service and converts them into nested object and arrays - using your own model classes. Starting from a base object, it maps JSON data on class properties, converting them into the correct simple types or objects. It’s a bit like the native SOAP parameter mapping PHP’s SoapClient gives you, but for JSON. It does not rely on any schema, only your PHP class definitions. Type detection works by parsing @var docblock annotations of class properties, as well as type hints in setter methods. You do not have to modify your model classes by adding JSON specific code; it works automatically by parsing already-existing docblocks. Autoloader
We can use yum
or dnf
to install php-netresearch-jsonmapper
on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-netresearch-jsonmapper.
Install php-netresearch-jsonmapper on Fedora 36 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
After updating yum database, We can install php-netresearch-jsonmapper
using dnf
by running the following command:
sudo dnf -y install php-netresearch-jsonmapper
Install php-netresearch-jsonmapper on Fedora 36 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
After updating yum database, We can install php-netresearch-jsonmapper
using yum
by running the following command:
sudo yum -y install php-netresearch-jsonmapper
How To Uninstall php-netresearch-jsonmapper on Fedora 36
To uninstall only the php-netresearch-jsonmapper
package we can use the following command:
sudo dnf remove php-netresearch-jsonmapper
php-netresearch-jsonmapper Package Contents on Fedora 36
/usr/share/doc/php-netresearch-jsonmapper
/usr/share/doc/php-netresearch-jsonmapper/ChangeLog
/usr/share/doc/php-netresearch-jsonmapper/README.rst
/usr/share/doc/php-netresearch-jsonmapper/composer.json
/usr/share/licenses/php-netresearch-jsonmapper
/usr/share/licenses/php-netresearch-jsonmapper/LICENSE
/usr/share/php/netresearch
/usr/share/php/netresearch/jsonmapper
/usr/share/php/netresearch/jsonmapper/JsonMapper
/usr/share/php/netresearch/jsonmapper/JsonMapper.php
/usr/share/php/netresearch/jsonmapper/JsonMapper/Exception.php
/usr/share/php/netresearch/jsonmapper/autoload.php
References
Summary
In this tutorial we learn how to install php-netresearch-jsonmapper
on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).