Download the PHP package jakejames/valorant-api-php-wrapper without Composer
On this page you can find all versions of the php package jakejames/valorant-api-php-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jakejames/valorant-api-php-wrapper
More information about jakejames/valorant-api-php-wrapper
Files in jakejames/valorant-api-php-wrapper
Package valorant-api-php-wrapper
Short Description PHP wrapper for the valorant api
License MIT
Homepage https://github.com/jakejames/valorant-api-php-wrapper
Informations about the package valorant-api-php-wrapper
Valorant API Wrapper
This is a simple package for the recently released Valorant Api, it's a php wrapper that makes calling the api much easier. The package follows psr-12 standards and has complete test coverage.
Installation
You can install the package via composer:
Note:
I don't currently have access to the match api endpoints due to it not being available in my policy
Usage
Instantiate the Valorant API class with your api token and your region. If you want to call the account endpoints for your riot account details then you need to use the riot region enum rather than the valorant enum.
For Valorant Calls:
Example:
For Riot Calls:
Example:
The Valorant api has 5 classes available, each one has methods related to that class
- Match
- Content
- Ranked
- Status
- Account
Response Formatting
Responses are returned inside a data array which contains the response from riot.
Success
Error
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Jake James
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
PHP Package Boilerplate
This package was generated using the PHP Package Boilerplate.
All versions of valorant-api-php-wrapper with dependencies
ext-json Version *
guzzlehttp/guzzle Version ^7.2
myclabs/php-enum Version ^1.8
spatie/data-transfer-object Version ^2.8