https://github.com/spomky-labs/otphp
:closed_lock_with_key: A PHP library for generating one time passwords according to RFC 4226 (HOTP) and the RFC 6238 (TOTP)
https://github.com/spomky-labs/otphp
hotp otp php rfc-4226 rfc-6238 rfc4226 rfc6238 totp
Last synced: 23 days ago
JSON representation
:closed_lock_with_key: A PHP library for generating one time passwords according to RFC 4226 (HOTP) and the RFC 6238 (TOTP)
- Host: GitHub
- URL: https://github.com/spomky-labs/otphp
- Owner: Spomky-Labs
- License: mit
- Created: 2013-10-20T09:59:08.000Z (over 11 years ago)
- Default Branch: 11.4.x
- Last Pushed: 2025-01-27T10:22:47.000Z (4 months ago)
- Last Synced: 2025-05-10T09:03:10.726Z (27 days ago)
- Topics: hotp, otp, php, rfc-4226, rfc-6238, rfc4226, rfc6238, totp
- Language: PHP
- Homepage:
- Size: 568 KB
- Stars: 1,382
- Watchers: 43
- Forks: 159
- Open Issues: 13
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
TOTP / HOTP library in PHP
==========================
[](https://packagist.org/packages/spomky-labs/otphp)
[](https://packagist.org/packages/spomky-labs/otphp)
[](https://packagist.org/packages/spomky-labs/otphp)
[](https://packagist.org/packages/spomky-labs/otphp)A php library for generating one-time passwords according to [RFC 4226](https://datatracker.ietf.org/doc/html/rfc4226) (HOTP Algorithm) and [RFC 6238](https://datatracker.ietf.org/doc/html/rfc6238) (TOTP Algorithm)
This library is compatible with Google Authenticator apps available for Android and iPhone.
It is also compatible with other applications such as [FreeOTP](https://play.google.com/store/apps/details?id=org.fedorahosted.freeotp) for example.# Documentation
The documentation of this project is available in the [*doc* folder](doc/index.md).
# Support
I bring solutions to your problems and answer your questions.
If you really love that project, and the work I have done or if you want I prioritize your issues, then you can help me out for a couple of :beers: or more!
[Become a sponsor](https://github.com/sponsors/Spomky)
Or
[](https://www.patreon.com/FlorentMorselli)
## Contributing
Requests for new features, bug fixed and all other ideas to make this project useful are welcome.
Please report all issues in [the repository bug tracker](hhttps://github.com/Spomky-Labs/otphp/issues).
Also make sure to [follow these best practices](.github/CONTRIBUTING.md).
## Licence
This software is release under the [MIT licence](LICENSE).