2017 © Pedro Peláez
 

library duo_php

A PHP implementation of the Duo Web SDK.

image

duosecurity/duo_php

A PHP implementation of the Duo Web SDK.

  • Friday, August 11, 2017
  • by matts_duosec
  • Repository
  • 46 Watchers
  • 56 Stars
  • 30,526 Installations
  • JavaScript
  • 2 Dependents
  • 0 Suggesters
  • 26 Forks
  • 2 Open issues
  • 2 Versions
  • 17 % Grown

The README.md

Deprecation Notice

This repository is deprecated by Duo Security. The repository will remain public and visible, and integrations built using this repository’s code will continue to work. You can also continue to fork, clone, or pull from this repository., (*1)

However, Duo will not provide any further releases or enhancements., (*2)

Duo recommends migrating your application to the Duo Universal Prompt. Refer to our documentation for more information on how to update., (*3)

For frequently asked questions about the impact of this deprecation, please see the Repository Deprecation FAQ, (*4)


Overview

Build Status Issues Forks Stars License, (*5)

duo_php - Duo two-factor authentication for PHP web applications: https://duo.com/docs/duoweb-v2, (*6)

This package allows a web developer to quickly add Duo's interactive, self-service, two-factor authentication to any web login form - without setting up secondary user accounts, directory synchronization, servers, or hardware., (*7)

Files located in the js directory should be hosted by your webserver for inclusion in web pages., (*8)

Installing

Development:, (*9)

$ git clone https://github.com/duosecurity/duo_php.git
$ cd duo_php
$ composer install

System:, (*10)

$ composer global require duosecurity/duo_php:dev-master

Or add the following to your project:, (*11)

{
    "require": {
        "duosecurity/duo_php": "dev-master"
    }
}

Using

$ php -a -d auto_prepend_file=vendor/autoload.php
Interactive mode enabled

php > var_dump(Duo\Web::signRequest($ikey, $skey, $akey, $username));
string(202) "TX|...TX_SIGNATURE...==|...TX_HASH...:APP|...APP_SIGNATURE...==|...APP_HASH..."

Demo

First add an IKEY, SKEY, and HOST to demos/simple/index.php, then run the following:, (*12)

$ php -S localhost:8080 -t demos/simple/

Test

$ ./vendor/bin/phpunit -c phpunit.xml
PHPUnit 5.3.2 by Sebastian Bergmann and contributors.

.............                                                     13 / 13 (100%)

Time: 62 ms, Memory: 6.00Mb

OK (13 tests, 13 assertions)

Lint

$ ./vendor/bin/phpcs --standard=PSR2 -n src/* tests/*

Support

Report any bugs, feature requests, etc. to us directly: support@duosecurity.com, (*13)

The Versions

11/08 2017

dev-master

9999999-dev https://duo.com/

A PHP implementation of the Duo Web SDK.

  Sources   Download

The Requires

  • php >=5.6

 

The Development Requires

24/05 2017

1.0.0

1.0.0.0 https://duo.com/

A PHP implementation of the Duo Web SDK.

  Sources   Download

The Requires

  • php >=5.6

 

The Development Requires