Download the PHP package chrgriffin/blizzard-faker without Composer

On this page you can find all versions of the php package chrgriffin/blizzard-faker. 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 blizzard-faker

Blizzard Faker

blizzard-faker is a collection of providers for Faker related to Blizzard Entertainment and its games.

Requirements

blizzard-faker requires PHP 7.0 or greater, and fzaninotto/faker 1.6 or greater.

Installation

You can install via composer:

Usage

You can add a Blizzard provider to Faker the same way you would add any other:

Once added, you can immediately make use of the provider methods as you normally would:

However, blizzard-faker offers additional filtering functionality:

These filters are additive and chainable, meaning if you want a human or terran name from Diablo, Starcraft, or Warcraft, you can write:

Providers

ChrGriffin\BlizzardFaker\Names

Valid Franchises

The Names provider is valid across all Blizzard franchises.

Available Methods and Arguments

ChrGriffin\BlizzardFaker\Monsters

Valid Franchises

The Monsters provider is only valid with the Diablo franchise.

Available Methods and Arguments

Filters

After directly calling a provider, you can apply various filters to it before retrieving your data.

Note that not all filters are compatible with all providers, or with each other. Simply apply common sense and you should be fine.

If a filter is applied to an incompatible provider or pre-existing set of filters, it will throw a ChrGriffin\BlizzardFaker\Invalid{Filter}Exception. For example, the following code:

will throw a ChrGriffin\BlizzardFaker\InvalidRaceException.

Franchise Filter

You can filter by the following franchises:

Race Filter

You can filter by the following races:

Roadmap

Under the Hood

A cursory investigation of the src directory will reveal a distinctly different structure than Faker itself.

In most cases, rather than an individual provider containing a few arrays and selecting an element at random, instead it calls upon multiple - sometimes nested - DataProvider classes to provide an array of random data. This is to facilitate the enormous amount of filtering that is possible without overly impacting performance; rather than filtering a single enormous array containing data spanning Blizzard's entire product line, instead we can select only a single DataProvider and then apply our filtering to that.

In addition to the various ways data can be filtered, there are also built-in 'rules' for returning data for some of the providers:


All versions of blizzard-faker with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
fzaninotto/faker Version ^1.6
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 chrgriffin/blizzard-faker contains the following files

Loading the files please wait ....