Download the PHP package chypriote/pandascore-php without Composer

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

PandaScore PHP7 wrapper GitHub release Packagist

Version v1.0.0-rc.1

Table of Contents

  1. Introduction
  2. Downloading
  3. League of Legends API
    1. Resource versions
    2. Initializing the library
    3. Usage example
    4. Cache providers
    5. Rate limiting
    6. Call caching
    7. Asynchronous requests
    8. Extensions
    9. Callback functions
    10. CLI support

Introduction

Welcome to the PandaScore PHP7 library repo! The goal of this library is to create easy-to-use library for anyone who might need one. This is fully object oriented API wrapper for PandaScore' API.

Here are some handy features:

Downloading

The easiest way to get this library is to use Composer.

While having Composer installed it takes only composer require chypriote/pandascore-php and composer install to get the library ready to roll!

PandaScore API

Resources

Below you can find table of implemented API resources. Endpoints without status are not planned to be implemented yet.

Resource Status
All Videogames - Leagues All Videogames - Leagues resource implemented version
All Videogames - Series All Videogames - Series resource implemented version
All Videogames - Tournaments All Videogames - Tournaments resource implemented version
All Videogames - Matches All Videogames - Matches resource implemented version
All Videogames - Teams All Videogames - Teams resource implemented version
All Videogames - Players All Videogames - Players resource implemented version
LOL - Champions LOL - Champions resource implemented version
LOL - Games LOL - Games resource implemented version
LOL - Items LOL - Items resource implemented version
LOL - Leagues LOL - Leagues resource implemented version
LOL - Masteries LOL - Masteries resource implemented version
LOL - Matches LOL - Matches resource implemented version
LOL - Players LOL - Players resource implemented version
LOL - Runes LOL - Runes resource implemented version
LOL - Series LOL - Series resource implemented version
LOL - Spells LOL - Spells resource implemented version
LOL - Stats LOL - Stats resource implemented version
LOL - Teams LOL - Teams resource implemented version
LOL - Tournaments LOL - Tournaments resource implemented version
CSGO CSGO resource implemented version
DOTA 2 DOTA 2 resource implemented version
Overwatch Overwatch resource implemented version

Initializing the library

How to begin?

And there is a lot more what you can set when initializing the library - mainly to enable special features or to amend behaviour of the library.

Usage example

Working with PandaScoreAPI can not be easier, just watch how to fetch a league information based on its id:

Cache providers

Cache providers are responsible for keeping data of call caching within instances of the library. This feature is automatically enabled, when any of previously mentioned features is used.

When using this feature, you can set PandaScoreAPI::SET_CACHE_PROVIDER to any class, thought it has to implement Objects\ICacheProvider interface. By using PandaScoreAPI::SET_CACHE_PROVIDER_PARAMS option, you can pass any variables to the cache provider.

Rate limiting

This clever feature will easily prevent exceeding your per key call limits & method limits. In order to enable this feature, you have to set PandaScoreAPI::SET_CACHE_RATELIMIT to true. Everything is completly automatic, so all you need to do is to enable this feature.

Call caching

This feature can prevent unnecessary calls to API within short timespan by temporarily saving fetched data from API and using them as the result data. In order to enable this feature, you have to set PandaScoreAPI::SET_CACHE_CALLS to true. You should also provide PandaScoreAPI::SET_CACHE_CALLS_LENGTH option or else default time interval of 60 seconds will be used.

Asynchronous requests

This feature allows request grouping and their asynchronous sending using Guzzle. After request is sent and its response received, user provided callbacks are invoked with received data.

Extensions

Using extensions for ApiObjects is useful tool, allowing implementation of your own methods into the ApiObjects itself. Extensions are enabled by using settings option PandaScoreAPI::SET_EXTENSIONS when initializing the library.

Callback functions

Allows you to provide custom functions to be called before and after the actual API request is sent.

Before callbacks have ability to cancel upcomming request - when false is returned by any callback function, exception Exceptions\RequestException is raised and request is cancelled.

CLI support

You can easily get API results even in CLI:


All versions of pandascore-php with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.3
php Version >=7.2
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 chypriote/pandascore-php contains the following files

Loading the files please wait ....