PHPackages                             abtswath/psn-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. abtswath/psn-client

ActiveLibrary[API Development](/categories/api)

abtswath/psn-client
===================

PSN client

0.0.1(3y ago)94MITPHPPHP ^7.4

Since Sep 8Pushed 3y ago1 watchersCompare

[ Source](https://github.com/abtswath/psn-client)[ Packagist](https://packagist.org/packages/abtswath/psn-client)[ RSS](/packages/abtswath-psn-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

PSN API 库
=========

[](#psn-api-库)

安装
--

[](#安装)

```
composer require abtswath/psn-client
```

使用
--

[](#使用)

### 登录

[](#登录)

1. 登录 [PlayStation](https://www.playstation.com/)
2. 到[这个页面](https://ca.account.sony.com/api/v1/ssocookie)获取 NPSSO token 并复制。
3. 使用 NOSSO token 换取 oauth token

```
use Abtswath\PSNClient\Client;

$npsso = '上一步获取的 NPSSO';
$client = new Client();
$authToken = $client->auth()->login($npsso);
$accessToken = $authToken->getAccessToken();
$client->setAccessToken($accessToken);

```

### API

[](#api)

```
$client->user()->gameList(); // 获取用户游戏列表
$client->user()->trophyTitles(); // 获取用户奖杯列表
$client->trophy()->trophies(); // 获取某个游戏奖杯列表
$client->trophy()->earned(); // 获取某个游戏已解锁的奖杯

```

参考
--

[](#参考)

本工具库的实现参考了  与 ，具体的接口返回示例与请求参数说明请参考以上文档。

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1340d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49f35bf03f8a0e6c322096268eba99afa23386462757ee840885fc768e5dbef7?d=identicon)[abtswath](/maintainers/abtswath)

---

Top Contributors

[![abtswath](https://avatars.githubusercontent.com/u/31396419?v=4)](https://github.com/abtswath "abtswath (2 commits)")

---

Tags

apiplaystationplaystation-apips-apips4ps5psnapiplaystationpsnPlayStation APIPS4PS5PS API

### Embed Badge

![Health badge](/badges/abtswath-psn-client/health.svg)

```
[![Health](https://phpackages.com/badges/abtswath-psn-client/health.svg)](https://phpackages.com/packages/abtswath-psn-client)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[tustin/psn-php

PHP wrapper for the PlayStation API.

37237.8k1](/packages/tustin-psn-php)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
