spomky-labs/otphp
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
11.5.0
53M downloads/mo
#513 most downloaded on Packagist
Spomky-Labs/otphp
What this package is like to depend on
Last release 2 months ago
06 Jun 2026
Release timing varies
gaps range from 3 weeks to 1.6 years
Rarely documented
notes for 10 of 54 stable releases
Nothing withdrawn
no release was ever pulled
12 years old
62 releases · first in 2014
5 releases in the last 12 months
see the full history below
Release timeline
62 releases · Feb 2014 to Jun 2026Releases
latest 60 of 62-
11.5.006 Jun 2026Release notes
Open source →Release Notes for 11.5.0
Feature release (minor)
11.5.0
- Total issues resolved: 0
- Total pull requests resolved: 2
- Total contributors: 2
enhancement
DX,UX
-
11.4.331 May 2026Release notes
Open source →🔒 Security release
This release fixes two medium-severity advisories affecting
Factory::loadFromProvisioningUri()— the entry point used to load third-partyotpauth://provisioning URIs. All versions< 11.4.3are affected; upgrade to 11.4.3.- GHSA-g7m4-839x-ch6v — an unbounded
digitsvalue made10 ** digitsoverflow, raising an uncatchableDivisionByZeroErrorinat()/now()/verify().digitsis now bounded to1..10. - GHSA-2jx3-65f3-xr8r — a hostile URI key could mass-assign internal properties (state corruption,
TypeError, readonlyError). Onlylabel/issuerare now written; any failure surfaces as the documentedInvalidProvisioningUriException.
Release Notes for 11.4.3
11.4.x bugfix release (patch)
11.4.3
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
bug
- GHSA-g7m4-839x-ch6v — an unbounded
-
11.4.223 Jan 2026Release notes
Open source →Release Notes for 11.4.2
11.4.x bugfix release (patch)
11.4.2
- Total issues resolved: 1
- Total pull requests resolved: 2
- Total contributors: 1
bug
-
11.4.105 Jan 2026Release notes
Open source →Release Notes for 11.4.1
11.4.x bugfix release (patch)
11.4.1
-
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
-
-
11.4.003 Jan 2026Release notes
Open source →Release Notes for 11.4.0
Feature release (minor)
11.4.0
- Total issues resolved: 1
- Total pull requests resolved: 10
- Total contributors: 7
enhancement
- 251: feat: add custom exception hierarchy for better error handling thanks to @Spomky
- 249: Allow passing a custom secret size when generating OTP thanks to @Spomky
- 247: Accept OTP URIs with different issuer in label and parameter thanks to @Spomky and @dapphp
- 244: Add migration API for
readonlyclasses thanks to @Slamdunk - 204: allow passing a
$secretSizewhen generating a secret thanks to @browner12
bug
-
248: 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
-
11.3.012 Jun 2024Release notes
Open source →Release Notes for 11.3.0
Feature release (minor)
11.3.0
- Total issues resolved: 0
- Total pull requests resolved: 6
- Total contributors: 2
dependencies
-
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
-
11.2.215 Apr 2024Release notes
Open source →Release Notes for 11.2.2
11.2.x bugfix release (patch)
11.2.2
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
DX
-
11.2.114 Apr 2024Release notes
Open source →Release Notes for 11.2.1
11.2.x bugfix release (patch)
11.2.1
-
Total issues resolved: 0
-
Total pull requests resolved: 2
-
Total contributors: 2
-
213: Refactor PHP codebase and update dependencies thanks to @Spomky
bug
- 210: Explicitly set arg_seperator thanks to @ziegenberg
-
-
11.2.016 Mar 2023Nothing published for this version
-
11.1.114 Apr 2024Release notes
Open source →Release Notes for 11.1.1
11.1.x bugfix release (patch)
11.1.1
-
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]
-
-
11.1.011 Nov 2022Nothing published for this version
-
11.0.311 Nov 2022Release notes
Open source →Release Notes for 11.0.3
11.0.3
- Total issues resolved: 0
- Total pull requests resolved: 1
- Total contributors: 1
DX,documentation
-
v11.0.211 Oct 2022Nothing published for this version
-
v11.0.116 Jul 2022Nothing published for this version
-
v11.0.024 Jun 2022Nothing published for this version
-
v10.0.317 Mar 2022Nothing published for this version
-
v10.0.215 Feb 2022Nothing published for this version
-
v10.0.128 Jan 2020Nothing published for this version
-
v10.0.030 Jul 2019Nothing published for this version
-
v9.1.418 Mar 2019Nothing published for this version
-
v9.1.306 Jan 2019Nothing published for this version
-
v9.1.224 Nov 2018Nothing published for this version
-
v9.1.126 Oct 2018Nothing published for this version
-
v9.1.026 Feb 2018Nothing published for this version
-
v9.0.323 Nov 2017Nothing published for this version
-
v9.0.224 Jul 2017Nothing published for this version
-
v9.0.124 Jul 2017Nothing published for this version
-
v9.0.030 Jun 2017Nothing published for this version
-
v9.0.0-alpha101 Jun 2017 pre-releaseNothing published for this version
-
v8.3.313 Sep 2018Nothing published for this version
-
v8.3.224 Jul 2017Nothing published for this version
-
v8.3.124 Jul 2017Nothing published for this version
-
v8.3.008 Dec 2016Nothing published for this version
-
v8.2.012 Jul 2016Nothing published for this version
-
v8.1.011 Jul 2016Nothing published for this version
-
v8.0.009 Jul 2016Nothing published for this version
-
v7.0.410 May 2016Nothing published for this version
-
v7.0.329 Apr 2016Nothing published for this version
-
v7.0.221 Mar 2016Nothing published for this version
-
v7.0.117 Mar 2016Nothing published for this version
-
v7.0.016 Mar 2016Nothing published for this version
-
v6.0.415 Nov 2015Nothing published for this version
-
v6.0.309 Nov 2015Nothing published for this version
-
v6.0.230 Oct 2015Nothing published for this version
-
v6.0.129 Sep 2015Nothing published for this version
-
v6.0.029 Sep 2015Nothing published for this version
-
v5.0.126 Jun 2015Nothing published for this version
-
5.0.021 May 2015Nothing published for this version
-
v4.0.427 Apr 2015Nothing published for this version
-
v4.0.322 Apr 2015Nothing published for this version
-
v4.0.217 Mar 2015Nothing published for this version
-
v4.0.102 Nov 2014Nothing published for this version
-
v4.0.002 Nov 2014Nothing published for this version
-
v3.1.102 Nov 2014Nothing published for this version
-
v3.1.008 Aug 2014Nothing published for this version
-
v3.0.1-stable21 Jul 2014 pre-releaseNothing published for this version
-
v3.0.0-stable01 Jun 2014 pre-releaseNothing published for this version
-
v2.0.2-stable21 Jul 2014 pre-releaseNothing published for this version
-
v2.0.1-stable01 Jun 2014 pre-releaseNothing published for this version
-
v2.0.0-stable30 May 2014 pre-releaseNothing published for this version