How To Install php-google-auth on Fedora 36

In this tutorial we learn how to install php-google-auth in Fedora 36. php-google-auth is Google Auth Library for PHP

Introduction

In this tutorial we learn how to install php-google-auth on Fedora 36.

What is php-google-auth

This is Google’s officially supported PHP client library for using OAuth 2.0 authorization and authentication with Google APIs. Autoloader

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

Install php-google-auth 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-google-auth using dnf by running the following command:

sudo dnf -y install php-google-auth

Install php-google-auth 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-google-auth using yum by running the following command:

sudo yum -y install php-google-auth

How To Uninstall php-google-auth on Fedora 36

To uninstall only the php-google-auth package we can use the following command:

sudo dnf remove php-google-auth

php-google-auth Package Contents on Fedora 36

/usr/share/doc/php-google-auth
/usr/share/doc/php-google-auth/CHANGELOG.md
/usr/share/doc/php-google-auth/CODE_OF_CONDUCT.md
/usr/share/doc/php-google-auth/README.md
/usr/share/doc/php-google-auth/SECURITY.md
/usr/share/doc/php-google-auth/composer.json
/usr/share/licenses/php-google-auth
/usr/share/licenses/php-google-auth/LICENSE
/usr/share/php/Google
/usr/share/php/Google/Auth
/usr/share/php/Google/Auth/AccessToken.php
/usr/share/php/Google/Auth/ApplicationDefaultCredentials.php
/usr/share/php/Google/Auth/Cache
/usr/share/php/Google/Auth/Cache/InvalidArgumentException.php
/usr/share/php/Google/Auth/Cache/Item.php
/usr/share/php/Google/Auth/Cache/MemoryCacheItemPool.php
/usr/share/php/Google/Auth/Cache/SysVCacheItemPool.php
/usr/share/php/Google/Auth/CacheTrait.php
/usr/share/php/Google/Auth/Credentials
/usr/share/php/Google/Auth/Credentials/AppIdentityCredentials.php
/usr/share/php/Google/Auth/Credentials/GCECredentials.php
/usr/share/php/Google/Auth/Credentials/IAMCredentials.php
/usr/share/php/Google/Auth/Credentials/InsecureCredentials.php
/usr/share/php/Google/Auth/Credentials/ServiceAccountCredentials.php
/usr/share/php/Google/Auth/Credentials/ServiceAccountJwtAccessCredentials.php
/usr/share/php/Google/Auth/Credentials/UserRefreshCredentials.php
/usr/share/php/Google/Auth/CredentialsLoader.php
/usr/share/php/Google/Auth/FetchAuthTokenCache.php
/usr/share/php/Google/Auth/FetchAuthTokenInterface.php
/usr/share/php/Google/Auth/GCECache.php
/usr/share/php/Google/Auth/GetQuotaProjectInterface.php
/usr/share/php/Google/Auth/HttpHandler
/usr/share/php/Google/Auth/HttpHandler/Guzzle5HttpHandler.php
/usr/share/php/Google/Auth/HttpHandler/Guzzle6HttpHandler.php
/usr/share/php/Google/Auth/HttpHandler/Guzzle7HttpHandler.php
/usr/share/php/Google/Auth/HttpHandler/HttpClientCache.php
/usr/share/php/Google/Auth/HttpHandler/HttpHandlerFactory.php
/usr/share/php/Google/Auth/Iam.php
/usr/share/php/Google/Auth/Middleware
/usr/share/php/Google/Auth/Middleware/AuthTokenMiddleware.php
/usr/share/php/Google/Auth/Middleware/ProxyAuthTokenMiddleware.php
/usr/share/php/Google/Auth/Middleware/ScopedAccessTokenMiddleware.php
/usr/share/php/Google/Auth/Middleware/SimpleMiddleware.php
/usr/share/php/Google/Auth/OAuth2.php
/usr/share/php/Google/Auth/ProjectIdProviderInterface.php
/usr/share/php/Google/Auth/ServiceAccountSignerTrait.php
/usr/share/php/Google/Auth/SignBlobInterface.php
/usr/share/php/Google/Auth/Subscriber
/usr/share/php/Google/Auth/Subscriber/AuthTokenSubscriber.php
/usr/share/php/Google/Auth/Subscriber/ScopedAccessTokenSubscriber.php
/usr/share/php/Google/Auth/Subscriber/SimpleSubscriber.php
/usr/share/php/Google/Auth/UpdateMetadataInterface.php
/usr/share/php/Google/Auth/autoload.php

References

Summary

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