Download the PHP package matthiggins/bluezone without Composer
On this page you can find all versions of the php package matthiggins/bluezone. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download matthiggins/bluezone
More information about matthiggins/bluezone
Files in matthiggins/bluezone
Package bluezone
Short Description A modern PHP SDK for interacting with the PUBG API and PUBG match telemetry files.
License MIT
Homepage https://github.com/matthiggins/bluezone
Informations about the package bluezone
BLUEZONE : A PHP SDK for the PUBG API
BLUEZONE is an SDK for PHP that makes using the PUBG API dead simple. It provides a set of simple and intuitive methods that allow you to interact with the PUBG API without having to worry about low-level details such as authentication and request handling. With BLUEZONE, you can easily retrieve data for players, matches, seasons, weapon mastery, and survival mastery. It also includes a set of data transfer objects (DTOs) that help you work with the data returned by the API in a structured and organized way.
In addition to accessing data from the API, BLUEZONE also allows you to access match telemetry files and parse them for player data. This makes it easy to analyze gameplay data and gain insights into player behavior. Whether you're building a tool to help players improve their skills or conducting research on player behavior, BLUEZONE provides a powerful and flexible way to work with PUBG data.
Relevant Links
Table of Contents
- BLUEZONE : A PHP SDK for the PUBG API
- Table of Contents
- Installation
- Usage
- Making requests
- Available methods
- Seasons list
- Player search, player profiles, and stats
- Matches
- Accessing Match Telemetry Data
- Working with telemetry events
- Game events and match events from telemetry
- Filter events from the telemetry data
Installation
To install, require the package matthiggins/bluezone
via composer.
Usage
Instantiate a new Bluezone instance using your PUBG API key. You can get your own API key by going to the PUBG Developer Portal.
Bluezone uses Saloon to create a Connector, Requests, and DTOs for the PUBG API. You can use all of the features of Saloon in the requests and responses.
Making requests
Requests will return a PUBG DTO instance or a collection of instances.
If the request results in an error an exception will be thrown.
By default, Saloon provides classes for specific errors related to the request.
Available methods
Bluezone has easy methods for accessing the [PUBG API endpoints](https://documentation.pubg.com/en/introduction.ht
Seasons list
Player search, player profiles, and stats
You can search for a player by their in-game name and shard or you can retrieve a player using their Account ID.
Matches
Accessing Match Telemetry Data
The PUBG API provides access to very detailed match data in a Match Telemetry file. This file contains information about game details, player movement, player action, zone information, and more. Telemetry files are large JSON files that can be parsed and analyzed for deeper analysis.
To get a telemetry file you must first request details of a PUBG match.
Working with telemetry events
The telemetry file is essentially a huge list of events that happen during a match. These are events for individual players as well as game events like care packages, circle movement, etc. You can easily filter these events with helper methods that make pulling player and game data easier.
Game events and match events from telemetry
In addition to player events you can also easily access game events and match details.
Filter events from the telemetry data
You can easily filter out events from the data using Laravel Collection methods.
For example: