Download the PHP package m1so/champion without Composer
On this page you can find all versions of the php package m1so/champion. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download m1so/champion
More information about m1so/champion
Files in m1so/champion
Informations about the package champion
Champion
Champion.gg API wrapper written in PHP.
Installation:
Require this package using composer
composer require m1so/champion
Disclaimer: The internal API of this package may change, use at own risk
Todo:
- Exception handling
- More examples and usecases
- Add tests
Documentation
Overview of all methods and endpoints with examples.
Usage
Set you API key using
Always remember to use
or fully qualify the namespace
Champion specific
List of all endpoints and methods that are specific to a given champion.
All champions
Endpoint: /champion
Example:
Champion info
Endpoint: /champion/:name
Example:
Endpoint: /champion/:name/general
Example:
Champion matchups
Endpoint: /champion/:name/matchup
Example:
Finished items for champion
Endpoint: /champion/:name/items/finished/{mostPopular, mostWins}
Example:
Skill order for champion
Endpoint: /champion/:name/skills/{mostPopular, mostWins}
Example:
Starting items
Endpoint: /champion/:name/items/starters/{mostPopular, mostWins}
Example:
Summoner spells
Endpoint: /champion/:name/summoners/{mostPopular, mostWins}
Example:
Runes
Endpoint: /champion/:name/runes/{mostPopular, mostWins}
Example:
Matchup between two champions
Endpoint: /champion/:name/matchup/:enemy
Example:
Stats
Stats related endpoints and methods
All stats
Endpoint: /stats
Example:
All stats for all roles
Endpoint: /stats/role
Example:
Choosing a specific role for stats
Endpoint: /stats/role/:role/{mostImproved, leastImproved, leastWinning, mostWinning, worstPerformance, bestPerformance} [page, limit]
Example:
Specific champion related stats
Endpoint: /stats/champs/:name
Example:
General champion stats
Endpoint: /stats/champs/{mostBanned, leastWinning, leastPlayed, mostPlayed, mostWinning, bestRated, worstRated} [page, limit]
Example: