vinevax/steam-php-api 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

vinevax/steam-php-api

最新稳定版本:v1.1.1

Composer 安装命令:

composer require vinevax/steam-php-api

包简介

PHP Client for accessing the Steam API

README 文档

README

License Latest Version on Packagist Total Downloads

Installation

composer require "vinevax/steam-php-api"

Usage

First create a new instance of VineVax\SteamPHPApi\SteamClient with your API key. You can get your API key from here.

use VineVax\SteamPHPApi\SteamClient;

$steam = new SteamClient('YOUR_API_KEY');

Available methods

Get game news

$steam->getNewsForApp(appId: 440, count: 3, maxlength: 300);

Get global achievements overview

$steam->getGlobalAchievementPercentagesForApp(appId: 440);

Get player summaries (accepts 1 steamid or an array of steamids)

$steam->getPlayerSummaries(steamIds: 76561197960435530);
$steam->getPlayerSummaries(steamIds: [76561197960435530, 76561197960435531]);

Get player friend list

$steam->getFriendList(steamId: 76561197960435530, relationship: 'friend');

Get player achievements

$steam->getPlayerAchievements(steamId: 76561197960435530, appId: 440, language: \VineVax\SteamPHPApi\Enums\Language::ENGLISH);

Get player stats for game

$steam->getPlayerStatsForGame(steamId: 76561197960435530, appId: 440, language: \VineVax\SteamPHPApi\Enums\Language::ENGLISH);

Get owned games

$steam->getOwnedGames(steamId: 76561197960435530, includeAppInfo: true, includeFreeGames: true);

Get recently played games

$steam->getRecentlyPlayedGames(steamId: 76561197960435530, count: 15);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-12-21