Skip to content

Public Playstation Store API wrapper in PHP to obtain games from the store.

Notifications You must be signed in to change notification settings

dano1066/playstation-store-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Playstation Store API

This PHP class will wrap around the public Playstation store API. The API will grant access to everything that can be accessed via the web store. All data from the store will be returned in the response. You do not need to drill down into the individual pages for each sku in order to get additional data about it. Available data includes

  • Title
  • Description
  • Images
  • Ratings
  • Related Products
  • Price
  • Trophy information is not returned, but can be accessed using the Sku separately. See below.

Usage

I have included a test file to give a basic usage example.

	require_once "StoreBase.php";
	require_once "PlaystationStore.php";
	
	$PlaystationStore = new PlaystationStore("GB", "en");
	
	$MostPopular = $PlaystationStore->MostPopular();
	
	foreach ($MostPopular as $game)
	{
		echo $game->name . " - " . $game->default_sku->display_price . "<br>";
		echo "<img src='".$game->images[0]->url."'><hr>";
	}

Obtaining Trophy Counts

The store does not give back trophy counts in the response. Multiple Skus on the store will share the same trophy list. I have setup a custom API that will allow you to obtain trophy list data based on the sku. If you want access to the trophy data let me know, I can expose the data from all the Playstation Trophy Lists on this list.

About

Public Playstation Store API wrapper in PHP to obtain games from the store.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages