Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fetus-hina/totp

RFC 6238 / TOTP: Time-Based One-Time Password Algorithm
https://github.com/fetus-hina/totp

Last synced: 19 days ago
JSON representation

RFC 6238 / TOTP: Time-Based One-Time Password Algorithm

Awesome Lists containing this project

README

        

totp
====

PHP implementation of RFC6238 (TOTP: Time-Based One-Time Password Algorithm).

[![License](https://poser.pugx.org/jp3cki/totp/license.svg)](https://packagist.org/packages/jp3cki/totp)
[![Latest Stable Version](https://poser.pugx.org/jp3cki/totp/v/stable.svg)](https://packagist.org/packages/jp3cki/totp)
[![CI](https://github.com/fetus-hina/totp/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/fetus-hina/totp/actions/workflows/ci.yml)

Requirements
------------

* PHP (64-bits): PHP 8.1 or later
* PHP Extensions: hash

Install
-------

1. Set up [Composer](https://getcomposer.org/), the de facto standard package manager.
2. `php composer.phar require jp3cki/totp`

Usage
-----
```php
`

Contributing
------------

Patches and/or report issues are welcome.

* Please create new branch for each issue or feature. (should not work in master branch)
* Please write and run test. `$ make test`
* Please run check-style for static code analysis and coding rule checking. `$ make check-style`
* Please clean up commits.
* Please create new pull-request for each issue or feature.
* Please use Japanese or *very simple* English to create new pull-request or issue.

Breaking Changes
----------------

- v3.0.0
- Minimum environment is now PHP 8.1

- v2.0.0
- Minimum environment is now PHP 7.2
- Argument types are now strictly enforced
- Removed `Random::generate*()`. Always use `random_bytes()` now.