PHPackages                             vhin0210/php-psnpublictrophies - 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. vhin0210/php-psnpublictrophies

ActiveLibrary[API Development](/categories/api)

vhin0210/php-psnpublictrophies
==============================

PHP library to get psn public trophies by psn id

1.1.5(7y ago)4200PHP

Since Aug 30Pushed 7y ago3 watchersCompare

[ Source](https://github.com/vhin0210/PHP-PSNPublicTrophies)[ Packagist](https://packagist.org/packages/vhin0210/php-psnpublictrophies)[ RSS](/packages/vhin0210-php-psnpublictrophies/feed)WikiDiscussions master Synced yesterday

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

PHP-PSNPublicTrophies
=====================

[](#php-psnpublictrophies)

This is a simple PHP library that will get PSN profile and trophies by PSN ID.

**NOTE: Your PSN account must have 2-Step Verification enabled**

**Install via Composer**

```
composer require vhin0210/php-psnpublictrophies
```

How to use
==========

[](#how-to-use)

**Get Access Token**

```
$psnAuth = new \PSNPublicTrophiesLib\PSNPublicTrophiesAuth();

// Get Ticket UUID from Playstation Network by loging in to Playstation Network (works best with 2-Step Verification)
// Get the login URL. Copy the URL and open in a new tab
// Login and copy the whole URL. Your PSN account must have 2-Step Verification enabled, don't enter the Verification Code on that PS form.
$authUrl = $psnAuth->getAuthenticateUrl();

// Get Ticket UUID from the URL you copied.
$auth_url_parameters = $psnAuth->getAuthenticateUrlParameters($ticket_uuid_url);
$ticket_uuid = NULL;
if (isset($auth_url_parameters['ticket_uuid'])) {
  $ticket_uuid = $auth_url_parameters['ticket_uuid'];
}

// Authenticate with all the credentials
// $psn_id - your PSN ID
// $password - your password
// $ticket_uuid - the ticket uuid from the url you copied from playstation network
// $verification_code - code from the SMS you get from Playstation
$auth = $psnAuth->authenticate($psn_id, $password, $ticket_uuid, $verification_code);

// Get the access token (array). You can save this token in your database
$psn_account_token = $auth->GetTokens();
```

**Refresh Token**

```
// Initialize the library with the access token. This will automatically refresh the token.
// $psn_account_token - the access token (array)
$psnAuth = new \PSNPublicTrophiesLib\PSNPublicTrophiesAuth($psn_account_token);

// Get the new access token
$psn_account_token = $psnAuth->access_token;
```

**Get Profile**

```
$psnAuth = new \PSNPublicTrophiesLib\PSNPublicTrophiesAuth($psn_account_token);

$profileData = $psnAuth->getProfile();
```

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity68

Established project with proven stability

 Bus Factor1

Top contributor holds 90% 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

Every ~69 days

Recently: every ~39 days

Total

7

Last Release

2762d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bcc780b1f426160d11512d93cafe092660cc91b70b6706c14e8f82ff208a10a4?d=identicon)[vhin0210](/maintainers/vhin0210)

---

Top Contributors

[![vhin0210](https://avatars.githubusercontent.com/u/1862334?v=4)](https://github.com/vhin0210 "vhin0210 (18 commits)")[![mqcristobal](https://avatars.githubusercontent.com/u/4445099?v=4)](https://github.com/mqcristobal "mqcristobal (2 commits)")

### Embed Badge

![Health badge](/badges/vhin0210-php-psnpublictrophies/health.svg)

```
[![Health](https://phpackages.com/badges/vhin0210-php-psnpublictrophies/health.svg)](https://phpackages.com/packages/vhin0210-php-psnpublictrophies)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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