Download the PHP package heroespatchnotes/sdk without Composer

On this page you can find all versions of the php package heroespatchnotes/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sdk

Heroes SDK

PHP SDK for Heroes of the Storm

Coverage Status

Installation

  1. Add the heroes-data repository to your composer.json, e.g.:

  2. Install with Composer: > composer require heroespatchnotes/sdk

Description

Heroes is an SDK written in PHP to facilitate access to community resources for Blizzard's MOBA, Heroes of the Storm.

Game Data

Game data is extracted and maintained by koliva8245 and published under the Heroes Tool Chest at heroes-data. The SDK offers convenient discovery and class wrapping for the raw JSON files on two different levels: Providers and Entities.

Providers

Providers locate and load the JSON-encoded data into convenience shared instances. You can think of a Provider as the "database connection" for game data. Because they load into entire files into memory the Provider can only be instantiated through its static get() method to ensure a single, shared instance. Providers are file- and patch-specific and come in two flavors. Provider contents may be accessed by their JSON keys or in their entirety with the getContent() method.

DataProvider

A DataProvider accesses game data from the data subdirectories of a patch. Each DataProvider requires a $group corresponding to the data file, and a $patch for the version of data to use.

Note: Omitting $patch will default to the latest available. You may always check a Provider's patch by its getPatch() method.

Available groups are defined as class constants on the DataProvider class:

StringProvider

A StringProvider accesses game strings from the gamestrings subdirectories of a patch. Each StringProvider requires a $group corresponding to the locale, and a $patch for the version of data to use.

Note: Omitting $patch will default to the latest available. You may always check a Provider's patch by its getPatch() method.

Available groups are defined as class constants on the StringProvider class:

Examples

Entities

Entities build on Providers to simplify access to common data components. Like Providers Entities include access to the underlying JSON content, but they also have component-specific methods for many endpoints.

Entities are created by using the corresponding Factory, which is patch- and locale- specific:

Note: See the API docs for details on each Entity.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.3 || ^8.0
heroestoolchest/heroes-data Version dev-master
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package heroespatchnotes/sdk contains the following files

Loading the files please wait ....