How To Install php-icewind-smb on CentOS 7

In this tutorial we learn how to install php-icewind-smb on CentOS 7. php-icewind-smb is php wrapper for smbclient and libsmbclient-php

Introduction

In this tutorial we learn how to install php-icewind-smb on CentOS 7.

What is php-icewind-smb

PHP wrapper for smbclient and libsmbclient-php * Reuses a single smbclient instance for multiple requests * Doesn’t leak the password to the process list * Simple 1-on-1 mapping of SMB commands * A stream-based api to remove the need for temporary files * Support for using libsmbclient directly trough libsmbclient-php To use this library, you just have to add, in your project require-once ‘/usr/share/php/Icewind/SMB/autoload.php’;

We can use yum or dnf to install php-icewind-smb on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install php-icewind-smb.

Install php-icewind-smb on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install php-icewind-smb using yum by running the following command:

sudo yum -y install php-icewind-smb

Install php-icewind-smb on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install php-icewind-smb using dnf by running the following command:

sudo dnf -y install php-icewind-smb

How To Uninstall php-icewind-smb on CentOS 7

To uninstall only the php-icewind-smb package we can use the following command:

sudo dnf remove php-icewind-smb

References

Summary

In this tutorial we learn how to install php-icewind-smb on CentOS 7 using yum and dnf.