Awesome Open Source
Awesome Open Source

TOTP / HOTP library in PHP

Build Status

Latest Stable Version Total Downloads Latest Unstable Version License

A php library for generating one-time passwords according to RFC 4226 (HOTP Algorithm) and RFC 6238 (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 for example.


The documentation of this project is available in the doc folder.


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 🍻 or more!

Become a sponsor


Become a Patreon


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.

Also make sure to follow these best practices.


This software is release under the MIT licence.

Alternatives To Otphp
Select To Compare

Alternative Project Comparisons
Related Awesome Lists
Top Programming Languages

Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
Php (298,082
Password (20,345
Rfc (3,806
Totp (828
Hotp (311
Rfc 6238 (32
Rfc 4226 (18