NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist, #488 most downloaded on Packagist
A PHP library for generating one time passwords according to RFC 4226 (HOTP Algorithm) and the RFC 6238 (TOTP Algorithm) and compatible with Google Authenticator
Latest stable
11.5.1
Last release 15 days ago
07 Nov 2026
Release timing varies
gaps range from 3 weeks to 1.6 years
Most releases are documented
notes for 40 of 56 stable releases
Nothing withdrawn
no release was ever pulled
13 years old
64 releases · first in 2014
Drag across the ruler to compare, or tap a release to open it.
Total pull requests resolved: 0
11.5.x bugfix release (patch)
276: docs: replace deprecated Google Charts example with local BaconQrCode thanks to @guillaumedelre
Feature release (minor)
Your coding agent can read these notes before it upgrades. Set up the MCP server →
Total pull requests resolved: 0
11.4.x bugfix release (patch)
This release fixes two medium-severity advisories affecting Factory::loadFromProvisioningUri() — the entry point used to load third-party otpauth:// p
This release fixes two medium-severity advisories affecting Factory::loadFromProvisioningUri() — the entry point used to load third-party otpauth:// provisioning URIs. All versions < 11.4.3 are affected; upgrade to 11.4.3.
digits value made 10 ** digits overflow, raising an uncatchable DivisionByZeroError in at()/now()/verify(). digits is now bounded to 1..10.TypeError, readonly Error). Only label/issuer are now written; any failure surfaces as the documented InvalidProvisioningUriException.11.4.x bugfix release (patch)
Total pull requests resolved: 2
11.4.x bugfix release (patch)
Total pull requests resolved: 1
11.4.x bugfix release (patch)
Total issues resolved: 1
Total pull requests resolved: 1
Total contributors: 2
262: fix: remove mbstring dependency for better PHP compatibility thanks to @Spomky and @timsmid
Total pull requests resolved: 10
Feature release (minor)
readonly classes thanks to @Slamdunk$secretSize when generating a secret thanks to @browner12248: Fix label validation to comply with Google Authenticator spec thanks to @Spomky
240: Allow generateURI to better handle creation with missing label or issuer thanks to @pkly
243: Enhance project configuration and add new files for improved coding s… thanks to @Spomky
237: Fix totp expires in thanks to @tomme87
Total pull requests resolved: 6
Feature release (minor)
222: Update infection/infection requirement from ^0.26|^0.27|^0.28 to ^0.26|^0.27|^0.28|^0.29 thanks to @dependabot[bot]
221: Update paragonie/constant_time_encoding requirement from ^2.0 to ^2.0 || ^3.0 thanks to @dependabot[bot]
220: Bump actions/checkout from 3 to 4 thanks to @dependabot[bot]
219: Bump ramsey/composer-install from 2 to 3 thanks to @dependabot[bot]
189: Rector updated thanks to @Spomky
187: Feature/psr 20 thanks to @Spomky
Total pull requests resolved: 1
11.2.x bugfix release (patch)
Total pull requests resolved: 2
11.2.x bugfix release (patch)
Total issues resolved: 0
Total pull requests resolved: 2
Total contributors: 2
213: Refactor PHP codebase and update dependencies thanks to @Spomky
Total pull requests resolved: 1
Feature release (minor)
Total issues resolved: 0
Total pull requests resolved: 1
Total contributors: 1
185: Types: be more specific about required scalar types thanks to @Slamdunk
Total pull requests resolved: 1
11.1.x bugfix release (patch)
Total issues resolved: 0
Total pull requests resolved: 1
Total contributors: 1
211: Merge release 11.0.3 into 11.1.x thanks to @github-actions[bot]
166: Deprecate `::create` API, add `::createFromSecret` and `::generate` APIs thanks to @Slamdunk
Total issues resolved: 0
Total pull requests resolved: 3
Total contributors: 2
174: Badges changed thanks to @Spomky
170: Features/new pipeline thanks to @Spomky
::create API, add ::createFromSecret and ::generate APIs thanks to @SlamdunkTotal pull requests resolved: 1
Nothing published for this version
Full Changelog: https://github.com/Spomky-Labs/otphp/compare/v11.0.0...v11.0.1
Full Changelog: https://github.com/Spomky-Labs/otphp/compare/v11.0.0...v11.0.1
Improve documentation by @yookoala in https://github.com/Spomky-Labs/otphp/pull/140
Full Changelog: https://github.com/Spomky-Labs/otphp/compare/v10.0.1...v11.0.0
setSecret is now a public method #154
setSecret is now a public method #154Full Changelog: https://github.com/Spomky-Labs/otphp/compare/v10.0.2...v10.0.3
Allow thecodingmachine/safe:^2.
Nothing published for this version
Nothing published for this version
This new bug release includes #129 (than's to @andrewfenn)
This new bug release includes #129 (than's to @andrewfenn)
This version fixes #125 / #126 by reverting changes from #107
This version fixes #125 / #126 by reverting changes from #107
Minor correction allowing beberlei/assert v3.x to be used
Minor correction allowing beberlei/assert v3.x to be used
This version fix a bug on Google Authenticator (iOS version) when trailing = are present.
This version fix a bug on Google Authenticator (iOS version) when trailing = are present.
This new minor release includes the folowing changes:
This new minor release includes the folowing changes:
Nothing published for this version
This new minor release fixes #80. The Base32 encoder is now provided by Paragonie.
This new minor release fixes #80. The Base32 encoder is now provided by Paragonie.
Minor correction for the timecode calculation method.
This major release includes the following changes:
This major release includes the following changes:
This new major release introduces the following main changes:
This new major release introduces the following main changes:
create instead.final7.1. HHVM is not tested anymore.The library will be marked as stable if no issue is found within the next 30 days.
*This minor release fixes the dependency compatibility with random_compat #111 @jcoby
*This minor release fixes the dependency compatibility with random_compat #111 @jcoby
This new minor release fixes #80.
This new minor release fixes #80.
The Base32 encoder is now provided by Paragonie.
Minor correction for the timecode calculation method.
With this minor release, the label is no more required by the TOTP and HOTP classes. You can now create OTP objects and generate/verify passwords with
With this minor release, the label is no more required by the TOTP and HOTP classes. You can now create OTP objects and generate/verify passwords without label.
Label are still required when the provisioning URI is computed.
The method verify does not require the second argument (input) anymore.
The method verify does not require the second argument (input) anymore.
For TOTP: it changes nothing. You can continue to use the library as before For HOTP: now you can call this method and verify if the OTP is valid or not. The library will use the current counter.
This new version simplifies the usage of the getProvisioningQrCode method by setting by default the Google Chart API for QR Code creation (first argum
This new version simplifies the usage of the getProvisioningQrCode method by setting by default the Google Chart API for QR Code creation (first argument of the method)
This new major release includes to following modifications:
This new major release includes to following modifications:
This minor release fixes the #47. Now the issuer, when set, will be included as a query parameter in the provisioning URi by default.
This minor release fixes the #47. Now the issuer, when set, will be included as a query parameter in the provisioning URi by default.
This version fixes the issue #46 and allows a provisioning Uri without issuer to be correctly loaded by the OTP Factory.
This version fixes the issue #46 and allows a provisioning Uri without issuer to be correctly loaded by the OTP Factory.
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release adds Git attributes to avoid useless files in production to be downloaded (documentation, tests and other associated files or directories
This release adds Git attributes to avoid useless files in production to be downloaded (documentation, tests and other associated files or directories).
This library is now available for PHP 5.5.9+.
This library is now available for PHP 5.5.9+.
This new release includes the following fixes:
This new release includes the following fixes:
Nothing published for this version
This new major release provides the following features:
This new major release provides the following features:
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
This release fixes a bug on iOS plateform. See #20
This release fixes a bug on iOS plateform. See #20
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
Nothing published for this version
One column per quarter.