Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danielburger1337/steam-openid-php
A simple, modern and modular OpenID client library implementation for Steam.
https://github.com/danielburger1337/steam-openid-php
php php-8 php-library steam steam-openid
Last synced: about 1 month ago
JSON representation
A simple, modern and modular OpenID client library implementation for Steam.
- Host: GitHub
- URL: https://github.com/danielburger1337/steam-openid-php
- Owner: danielburger1337
- License: mit
- Created: 2021-09-15T01:33:08.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-19T02:57:40.000Z (about 1 year ago)
- Last Synced: 2024-09-29T20:03:19.121Z (about 2 months ago)
- Topics: php, php-8, php-library, steam, steam-openid
- Language: PHP
- Homepage:
- Size: 39.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[![PHPUnit](https://github.com/danielburger1337/steam-openid-php/actions/workflows/phpunit.yml/badge.svg)](https://github.com/danielburger1337/steam-openid-php/actions/workflows/phpunit.yml)
[![PHPStan](https://github.com/danielburger1337/steam-openid-php/actions/workflows/phpstan.yml/badge.svg)](https://github.com/danielburger1337/steam-openid-php/actions/workflows/phpstan.yml)# Steam OpenID Authentication Library
A simple, modern and modular OpenID client library implementation for Steam.
## Why this library?
This library aims to make the proccess of OpenID authentication with Steam as painless as possible.
As you may know, there are already a couple of libraries that do more or less the exact same thing as this library:
- https://github.com/xPaw/SteamOpenID.php
- https://github.com/SmItH197/SteamAuthenticationBut as you may know or will see, those libraries are exactly what people hate about PHP. They do not use any real coding or [php-fig (psr)](https://www.php-fig.org/) standards, are not modular (they require cURL) and are generally a pain to work with because they do not throw exceptions.
## How To Use
```php
constructCheckIdSetupUri());// ... in Callback.php (or your callback controller method)
use danielburger1337\SteamOpenId\Exception\ExceptionInterface;
// When steam redirects the user back to your "return_to" URI,
// verify the provided parameters in the query string.try {
// This method returns the users 64-bit SteamID.
$steamId = $openId->verifyCallback($_GET);
} catch (ExceptionInterface $e) {
exit(var_dump('Failed to verify steam authentication :('));
}
```### Terms & Conditions
Before using this library, please read and accept Valve's terms and conditions [here](https://steamcommunity.com/dev).