Download the PHP package mrt1m/playstation-store-api without Composer
On this page you can find all versions of the php package mrt1m/playstation-store-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mrt1m/playstation-store-api
More information about mrt1m/playstation-store-api
Files in mrt1m/playstation-store-api
Package playstation-store-api
Short Description A simple wrapper for working with PlayStation Store API
License MIT
Informations about the package playstation-store-api

playstation-store-api is simple wrapper for working with PlayStation Store API 🎮
Installation
Prerequisites
- PHP 8.1 or later
The playstation-store-api can be installed using Composer by running the following command:
Installation
Create Client object using the following code:
API Requests examples
Request product data by id
Request concept data by id
Request catalog data
Run examples
If you want run examples, you need: 1) Docker and docker compose 2) Execute make command for example:
3) Get api response from response directory
About request signing
For all request you need send sha256Hash. It's request signature.
You can get sha256Hash from browser request: 1) Open the Network panel and find query to https://web.np.playstation.com/api/graphql/v1/op 2) Copy the full request URL and use urldecode 3) sha256Hash is in the extensions parameter, example:
If default sha256Hash will be blocked, you can replace the base value:
1) Get new sha256Hash value
2) Replace the default value in PlaystationStoreApi\RequestLocatorService
3) Give $customRequestLocatorService to client
Custom request
If you need custom request:
1) Create new request class then implement PlaystationStoreApi\Request\BaseRequest
2) Append new request class with sha256Hash to PlaystationStoreApi\RequestLocatorService
3) Give new RequestLocatorService to client
4) Execute client get method with new request
All versions of playstation-store-api with dependencies
php Version >=8.1
psr/http-client Version ^1.0
guzzlehttp/psr7 Version ^2.0