How To Install php-pecl-json-post on Fedora 36

In this tutorial we learn how to install php-pecl-json-post in Fedora 36. php-pecl-json-post is JSON POST handler

Introduction

In this tutorial we learn how to install php-pecl-json-post on Fedora 36.

What is php-pecl-json-post

This extension provides a PHP content type handler for “text/json” to PHP’s form data parser. If the Content-Type of an incoming request is text/json, the JSON contents of the request body will by parsed into $_POST. This extension does not provide any constants, functions or classes.

We can use yum or dnf to install php-pecl-json-post on Fedora 36. In this tutorial we discuss both methods but you only need to choose one of method to install php-pecl-json-post.

Install php-pecl-json-post 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-pecl-json-post using dnf by running the following command:

sudo dnf -y install php-pecl-json-post

Install php-pecl-json-post 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-pecl-json-post using yum by running the following command:

sudo yum -y install php-pecl-json-post

How To Uninstall php-pecl-json-post on Fedora 36

To uninstall only the php-pecl-json-post package we can use the following command:

sudo dnf remove php-pecl-json-post

php-pecl-json-post Package Contents on Fedora 36

/etc/php-zts.d/50-json_post.ini
/etc/php.d/50-json_post.ini
/usr/lib/.build-id
/usr/lib/.build-id/23
/usr/lib/.build-id/23/7e8dd1039291b9b034af7bae3193a4353926fd
/usr/lib/.build-id/db
/usr/lib/.build-id/db/507e6805c63c77e7ca3f186592920aef054b27
/usr/lib64/php-zts/modules/json_post.so
/usr/lib64/php/modules/json_post.so
/usr/share/doc/pecl/json_post
/usr/share/doc/pecl/json_post/AUTHORS
/usr/share/doc/pecl/json_post/CONTRIBUTING.md
/usr/share/doc/pecl/json_post/CREDITS
/usr/share/doc/pecl/json_post/README.md
/usr/share/doc/pecl/json_post/THANKS
/usr/share/licenses/php-pecl-json-post
/usr/share/licenses/php-pecl-json-post/LICENSE
/var/lib/php/peclxml/php-pecl-json-post.xml

References

Summary

In this tutorial we learn how to install php-pecl-json-post on Fedora 36 using yum and [dnf]((/fedora/36/dnf/).