Download the PHP package gboquizosanchez/retroachievements without Composer
On this page you can find all versions of the php package gboquizosanchez/retroachievements. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gboquizosanchez/retroachievements
More information about gboquizosanchez/retroachievements
Files in gboquizosanchez/retroachievements
Package retroachievements
Short Description RetroAchievements.org API Container for Laravel
License MIT
Homepage https://github.com/gboquizosanchez
Informations about the package retroachievements
RetroAchievements.org API Container for Laravel
Summary
A library that lets you get achievement, user, and game data from RetroAchievements.org directly in your Laravel application.
Starting π
Prerequisites π
- Composer.
- PHP version 8.3 or higher.
Running π οΈ
Install the package via composer:
Establish the configuration in the .env
file:
You can also publish the configuration file to customize the package:
Note: You need to have a RetroAchievements account to use the API. If you don't have one, you can create one here. And also, you need to have a web API key. You can get one in your control panel.
Basic Usage π·
You can use two different methods:
Using the facade
This method provides directly from file the username and the web API key.
Using the RetroAchievements model directly
You can provide a custom username and web API key if you want to use different credentials.
Or, you can use the default ones from the using .
Mapping the response πΊοΈ
There are two ways to map the response. By default, the package uses the DTO mapping.
Note: If you want to use the raw mapping, you need to set the to and the to . RAW only works with DTO mapping disabled.
Available methods π
This package provides all methods available in the RetroAchievements API.
See the RetroClient facade for more information.
Working with βοΈ
PHP dependencies π¦
- Spatie Laravel Data
Develop dependencies π§
- Friendsofphp Php Cs Fixer
- Larastan Larastan
- Orchestra Testbench
- Pestphp Pest
Testing β
Problems? π¨
Let me know about yours by opening an issue!
Credits π§βπ»
- GermΓ‘n Boquizo SΓ‘nchez
- All Contributors
License π
MIT License (MIT). See License File.