定制 snipedragon/steamlink 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

snipedragon/steamlink

Composer 安装命令:

composer require snipedragon/steamlink

包简介

Provides authentication through Steam's OpenID and returns an object for the authenticated user.

README 文档

README

GitHub release PHP from Packagist GitHub license Packagist GitHub issues

Provides authentication through Steam's OpenID and returns an object for the authenticated user.

I could not find a solution that met my needs, so I made my own, the goals I set for myself are as follows:

  1. Generate a Login Button/URL using Steam's provided login button graphics.
  2. Begin a session (optional) and return a user object on login.
  3. Have the ability to refresh a user object by providing a steamid.

Getting Started - Composer

Add this to your composer.json file, in the require object:

"snipedragon/steamlink": "1.*"

After that, run composer install to install the package.

OR

composer require snipedragon/steamlink:1.*

Example

require __DIR__ . '/vendor/autoload.php';

$options = array(
    'apiKey' => 'YOUR-API-KEY-HERE', // Steam API KEY
    'domainName' => 'https://your-site.net', // Shown on the Steam Login page to your users.
    'loginRedirect' => 'https://your-site.net/index.php?page=SteamLink&action=Login', // Returns user to this page on login.
    'logoutRedirect' => 'https://your-site.net/index.php?page=SteamLink&action=Logout', // Returns user to this page on logout.
    'startSession' => false //true to start session, false to only validate and return a steam user object.
);

$steamlink = new SnipeDragon\SteamLink($options);

echo "<p>Click on the following button to login and authenticate yourself through Steam:</p>";
echo $steamlink->loginButton("rectangle"); //Can be "rectangle" or "square".

统计信息

  • 总下载量: 70
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-05-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固