duosecurity / duo_universal_php

Duo OIDC-based two-factor authentication for PHP web applications
https://duo.com/docs/duoweb
BSD 3-Clause "New" or "Revised" License
23 stars 13 forks source link

Update example to work with PHP 8 #11

Closed jeffreyparker closed 11 months ago

jeffreyparker commented 11 months ago

Description

Updates the example to be compatible with PHP 8 by updating the slim dependencies and fixing a warning with the http_proxy array access. Slim no longer supports PHP 7.3, so also dropping support for that. (PHP 7.3 was EOL 12/2021. PHP 7.4 is also EOL, but still heavily used)

Motivation and Context

The example should work with all currently-supported versions of PHP.

How Has This Been Tested?

Manually verified locally, and added basic example app validation to the CI testing.

Types of Changes

mbish commented 11 months ago

LGTM I just had one question but it's not blocking