allyans3/php-steam-totp

PHP library to deal with Steam's proprietary TOTP algorithm

v1.0.0 2023-06-21 18:46 UTC

This package is auto-updated.

Last update: 2024-10-21 21:42:46 UTC


README

This forks removes deprecated warnings on PHP 8

composer require allyans3/php-steam-totp

https://packagist.org/packages/allyans3/php-steam-totp

PHP library for TOTP for use with Steam. It's documented with phpdoc; just read it to learn how to use it.

Only requirement is cURL.

Example

<?php
require_once 'vendor/autoload.php'; // if you're using composer

use SteamTotp\SteamTotp;

echo "Login code: " . SteamTotp::getAuthCode("cnOgv/KdpLoP6Nbh0GMkXkPXALQ=");