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 today

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 13% 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

1393d 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

[laravel/framework

The Laravel Framework.

34.8k543.8M19.9k](/packages/laravel-framework)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k14](/packages/tempest-framework)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[drupal/core-recommended

Locked core dependencies; require this project INSTEAD OF drupal/core.

6942.5M415](/packages/drupal-core-recommended)[civicrm/civicrm-core

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

751291.4k40](/packages/civicrm-civicrm-core)[files.com/files-php-sdk

Files.com PHP SDK

2481.1k](/packages/filescom-files-php-sdk)

PHPackages © 2026

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