PHP Classes

File: docs/getting-started/installation.rst

Recommend this page to a friend!
  Packages of A. B. M. Mahmudul Hasan   OTP   docs/getting-started/installation.rst   Download  
File: docs/getting-started/installation.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: OTP
Generate token to be verified during a time window
Author: By
Last change:
Date: 20 days ago
Size: 988 bytes
 

Contents

Class file image Download
Installation ============ Requirements ------------ - PHP 8.4 or newer for the current ``5.x`` line PHP and library version compatibility ------------------------------------- .. list-table:: :header-rows: 1 * - OTP library line - PHP requirement * - ``5.x`` - ``>=8.4`` * - ``4.x`` - ``>=8.2`` * - ``3.x`` - ``>=8.2`` * - ``2.x`` - ``>=8.0`` * - ``1.x`` - ``>=7.1`` Install from Packagist: .. code-block:: bash composer require infocyph/otp Included capabilities --------------------- - Base32 secret generation, normalization, and validation - TOTP verification with configurable drift windows - HOTP look-ahead verification and resynchronization helpers - OCRA generation and verification - Generic OTP with caller-provided PSR-6 cache storage - Recovery codes with hashed storage - Provisioning URI generation, parsing, and SVG QR rendering Testing locally --------------- .. code-block:: bash php vendor/bin/pest