文件名称:retroachievements-composer:RetroAchievements.org API包装器
文件大小:11KB
文件格式:ZIP
更新时间:2024-06-06 03:17:47
retro achievements retroachievements PHP
RetroAchievements作曲家软件包
安装方式:
composer require joestrong/retroachievements
在项目中使用:
require_once('../vendor/autoload.php');
use JoeStrong\RetroAchievements\RetroAchievements;
$ra = new RetroAchievements($username, $apiKey);
$users = $ra->getTopTenUsers();
foreach ($users as $user) {
echo "$user->username
";
}
方法
使用API进行身份验证
$ra = new RetroAchievements($username, $apiKey);
获得前10名用户
$ra
【文件预览】:
retroachievements-composer-master
----composer.json(770B)
----.travis.yml(108B)
----CONTRIBUTING.md(2KB)
----src()
--------User.php(991B)
--------RetroAchievements.php(4KB)
--------Console.php(679B)
--------Game.php(3KB)
----examples()
--------consoles.php(319B)
--------game-info.php(789B)
--------top-users.php(353B)
--------games.php(316B)
----spec()
--------RetroAchievementsSpec.php(9KB)
----.gitignore(14B)
----CHANGELOG.md(479B)
----README.md(770B)
----phpspec.yml(119B)