Download the PHP package philicevic/faceit-php without Composer

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

faceit-php

A PHP SDK for the FACEIT Data API v4 built on Saloon v3. Returns fully typed, immutable DTOs for every endpoint.

This package is not stable yet. Use at your own risk.

Also, FACEITs API is sometimes inconsistent. This package tries to improve this a bit, but it still has its limitations. For example, the complete tournament endpoint is missing because I could not get reliable results from FACEIT.

Requirements

Installation

Getting a FACEIT API token

Create a server-side API key in the FACEIT Developer Portal and store it in an environment variable such as FACEIT_API_TOKEN.

Quick start

Laravel usage

See docs/laravel.md for service container binding and injection examples.

Resources

The client exposes one accessor per resource group. All methods return typed DTOs.

Accessor Methods Documentation
$faceit->player() get, lookup, getBans, getGameStats, getMatches, getHubs, getStats, getTeams, getTournaments docs/players.md
$faceit->match() get, getStats docs/matches.md
$faceit->championship() list, get, getMatches, getResults, getSubscriptions docs/championships.md
$faceit->hub() get, getMatches, getMembers, getRoles, getRules, getStats docs/hubs.md
$faceit->team() get, getStats, getTournaments docs/teams.md
$faceit->organizer() getByName, get, getChampionships, getGames, getHubs, getTournaments docs/organizers.md
$faceit->ranking() getGlobal, getPlayer docs/rankings.md
$faceit->leaderboard() getChampionshipLeaderboards, getChampionshipGroupRanking, getHubLeaderboards, getHubRanking, get docs/leaderboards.md
$faceit->game() list, get docs/games.md
$faceit->matchmaking() get docs/matchmakings.md
$faceit->search(...) cross-entity search docs/search.md

Paginated responses

Methods that return collections wrap items in a PaginatedResponse. See docs/paginated-responses.md.

Strict mode

Enable opt-in DTO validation to catch unexpected API changes early. See docs/strict-mode.md.

Error handling

The client uses Saloon and the AlwaysThrowOnErrors plugin, so HTTP errors surface as Saloon exceptions. Catch \Throwable or \Saloon\Exceptions\Request\RequestException as needed.

Testing

Built on Saloon's MockClient — no real HTTP calls needed in tests. See docs/testing.md.


All versions of faceit-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
saloonphp/saloon Version ^4.0
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 philicevic/faceit-php contains the following files

Loading the files please wait ...