• Stars
    star
    1,063
  • Rank 43,433 (Top 0.9 %)
  • Language
    PHP
  • License
    MIT License
  • Created about 10 years ago
  • Updated 3 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

PHP library for Two Factor Authentication (TFA / 2FA)

Logo PHP library for Two Factor Authentication

Build status Latest Stable Version License Downloads PayPal donate button

PHP library for two-factor (or multi-factor) authentication using TOTP and QR-codes. Inspired by, based on but most importantly an improvement on 'PHPGangsta/GoogleAuthenticator'. There's a .Net implementation of this library as well.

Warning:

By default, this package uses the lib/Providers/QRServerProvider.php as QR code generator. This provider is not suggested for applications where absolute security is needed, because it uses an external service for the QR code generation.

You can make use of the included Endroid or Bacon providers which generate locally.

Requirements

  • Requires PHP version >=8.1
  • cURL when using the provided QRServerProvider (default), ImageChartsQRCodeProvider or QRicketProvider but you can also provide your own QR-code provider.
  • random_bytes(), OpenSSL or Hash depending on which built-in RNG you use (TwoFactorAuth will try to 'autodetect' and use the best available); however: feel free to provide your own (CS)RNG.

Optionally, you may need:

Installation

The best way of installing this library is with composer:

php composer.phar require robthree/twofactorauth

Usage

For a quick start, have a look at the getting started page or try out the demo.

If you need more in-depth information about the configuration available then you can read through the rest of documentation.

Integrations

License

Licensed under MIT license. See LICENSE for details.

Logo / icon under CC0 1.0 Universal (CC0 1.0) Public Domain Dedication (Archived page)

More Repositories

1

IdGen

Twitter Snowflake-alike ID generator for .Net
C#
1,169
star
2

NUlid

.Net ULID implementation
C#
352
star
3

TwoFactorAuth.Net

.Net library for Two Factor Authentication (TFA / 2FA)
C#
337
star
4

MongoRepository

Repository abstraction layer on top of Official MongoDB C# driver
C#
309
star
5

NIdenticon

NIdenticon is a library for creating simple Identicons
C#
95
star
6

NGeoNames

Inspired by https://github.com/AReallyGoodName/OfflineReverseGeocode
C#
87
star
7

IP2Country

Ip to country mapping
C#
48
star
8

SimpleFeedReader

Easy to use, simple, Syndication feed reader
C#
32
star
9

NPushOver

Full fledged, async, .Net Pushover client
C#
24
star
10

NISOCountries

Always up-to-date (.Net) ISO Country list
C#
24
star
11

DebuggableSelfInstallingService

A Debuggable, Self-Installing Windows Service Template based on James Michael Hare's excellent blogposts
C#
23
star
12

TimeZoneMapper

Library for mapping *N*X TimeZone ID's (e.g. Europe/Amsterdam) to .Net's TimeZoneInfo classes.
C#
18
star
13

ITimer

Provides a testable abstraction and alternative to System.Threading.Timer and System.Timers.Timer. Targets netstandard2.0 and higher.
C#
16
star
14

TextTableBuilder

Simple, opinionated, modern table builder
C#
12
star
15

DSMRParser.Net

DSMR Parser for .Net
C#
9
star
16

HumanoID

Friendly ID generator. Converts integers to words and back.
PHP
7
star
17

NEnvoy

.Net Enphase Envoy client library
C#
7
star
18

IClock

Provides a testable abstraction and alternative to DateTime.Now / DateTime.UtcNow
C#
6
star
19

2FACLIClient

LastPass 2FA CLI Client
C#
6
star
20

DebuggableSelfInstallingOwinService

A Self-hosted OWIN Windows Service project template that is easier to run and debug than the default Windows Service project template
C#
6
star
21

WordClock

Hobby project building a word clock with friends.
C++
5
star
22

AutoRefreshTokenHttpMessageHandler

A thread-safe implementation of a DelegatingHandler that automatically refreshes the access token when the access token expires whilst **not** serializing all requests.
C#
4
star
23

RobThree

3
star
24

NaarDeKloot.nl

Repository for NaarDeKloot.nl
CSS
3
star
25

IPNetworkHelper

Provides helper (extension)methods for working with IPNetworks
C#
3
star
26

NetnummersNL

Interactieve kaart van netnummers (kengetallen) in Nederland / Interactive map of area codes for the Netherlands
HTML
2
star
27

SAC9010QC-SAC12010QC

Reverse engineered IR protocol for HomeFit Living / Alaska SAC9010QC/SAC12010QC (NEC 756504012 based) remote control
C++
2
star
28

P1-meter

P1 Meter (Wemos D1 mini) - Serial to HTTP POST. See also https://github.com/RobThree/DSMR.Net
C++
2
star
29

NuGetProxy

NuGet proxy that allows anonymous access to NuGet servers that require authentication.
C#
2
star
30

NMSSQLReplication

.Net library for retrieving (and managing) MSSQL Replication information
C#
1
star
31

NLog.Targets.Pushover

NLog.Targets.Pushover is a custom target for NLog enabling you to send logging messages to the Pushover service
C#
1
star
32

RSV

.Net library for reading / writing RSV files
C#
1
star
33

HttpNamespaceManager

Paul Wheeler's HttpNamespacemanager - with minor improvements
C#
1
star