PHP code example of tentwentyfour / remoteauth-ng

1. Go to this page and download the library: Download tentwentyfour/remoteauth-ng library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

tentwentyfour / remoteauth-ng example snippets


    wfloadExtension( 'RemoteauthNg' );
    // enable/disable auto user creation
    $wgRemoteAuthNgAutoCreateUser = false;
    // force remote user
    $wgRemoteAuthNgForceRemoteUser = true;