Download the PHP package yoolo-mine/google-authenticator without Composer

On this page you can find all versions of the php package yoolo-mine/google-authenticator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package google-authenticator

Google Authenticator PHP Class / PHP 谷歌身份验证器类

PHP Version

A PHP library to interact with Google Authenticator for 2FA.
本 PHP 库用于与 Google Authenticator 移动应用交互,实现双因素认证 (2FA)。

It can generate secrets, generate and verify codes, and provide QR-Code URIs. Implements TOTP according to RFC6238.
它可以生成密钥、生成和验证验证码,并提供二维码 URI。遵循 TOTP 标准 RFC6238。


Features / 功能


Installation / 安装

Use Composer:
使用 Composer 安装:

QR Code Example / 二维码示例

You can generate a QR Code for your secret and display it in HTML using Google Chart API: 可以使用 Google Chart API 为密钥生成二维码,并在 HTML 中显示:

HTML preview / 在网页中显示二维码:

This will render a QR code that can be scanned by Google Authenticator or other TOTP apps.

这将生成一个二维码,可被 Google Authenticator 或其他 TOTP 应用扫描添加。

Configuration / 配置

Set OTP code length / 设置验证码长度:

Notes / 注意事项

Make sure that used codes cannot be reused to prevent replay attacks. 确保验证码不可重复使用,防止重放攻击。

Limit verification attempts to prevent brute-force attacks. 限制验证次数以防止暴力破解。

Compatible with standard 2FA apps (Google Authenticator, Authy, 1Password, etc.) 兼容标准 2FA 应用(Google Authenticator、Authy、1Password 等)


All versions of google-authenticator with dependencies

PHP Build Version
Package Version
Requires php Version >=7.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package yoolo-mine/google-authenticator contains the following files

Loading the files please wait ...