PHP code example of zanderwar / steamauth
1. Go to this page and download the library: Download zanderwar/steamauth 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/ */
zanderwar / steamauth example snippets
// add this after your namespace or use FQCN instead
use SilverStripe\Security\Member;
use Zanderwar\SteamAuth\Extensions\MemberExtension;
use Zanderwar\SteamAuth\Extensions\PageControllerExtension;
/////
Member::add_extension(MemberExtension::class);
PageController::add_extension(PageControllerExtension::class);