Download the PHP package nellyt/free-to-game-api-wrapper without Composer
On this page you can find all versions of the php package nellyt/free-to-game-api-wrapper. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download nellyt/free-to-game-api-wrapper
More information about nellyt/free-to-game-api-wrapper
Files in nellyt/free-to-game-api-wrapper
Package free-to-game-api-wrapper
Short Description Wrapper for API https://www.freetogame.com
License MIT
Informations about the package free-to-game-api-wrapper
Wrapper for FreeToGame API
This is a PHP wrapper for the FreeToGame API
Basic installation
You can install this package via composer using:
Usage
Basic
Filters
Filters are used when fetching lists of games. There are three types of filter:
- Platform
- Category
- Tags
Filters are added to a FilterCollection instance, which is passed to the client.
Platform filters
Category / Tag filters
Lists of games can be filtered by category or tags, not both. Tag filters require an array of SearchTerms, while category filters accept only one.
Category
Tag
Tag helper
There are two helper functions available to assist build the array of SearchTerms.
Sort By
Lists of games can be sorted.
Example: multiple filters and sorted
Sort Options
The list of sorting options is:
- AlphabeticalSort
- PopularitySort
- ReleaseDateSort
- RelevanceSort
- Sort
Search Terms
The list of search terms is:
- Action
- ActionRolePlayingGame
- Anime
- BattleRoyale
- Card
- Fantasy
- Fighting
- FirstPerson
- Flight
- Horror
- LowSpecifications
- MartialArts
- MassivelyMultiplayerOnline
- MassivelyMultiplayerOnlineFirstPersonShooter
- MassivelyMultiplayerOnlineRealTimeStrategy
- MassivelyMultiplayerOnlineRolePlayingGame
- MassivelyMultiplayerOnlineThirdPersonShooter
- Military
- MultiplayerOnlineBattleArena
- OpenWorld
- Permadeath
- Pixel
- PlayerVersusEnvironment
- PlayerVersusPlayer
- Racing
- Sailing
- Sandbox
- ScienceFiction
- SearchTerm
- Shooter
- SideScroller
- Social
- Space
- Sports
- Strategy
- Superhero
- Survival
- Tank
- ThirdPerson
- ThreeDimensions
- TopDown
- TowerDefense
- TurnBased
- TwoDimensions
- Voxel
- Zombie
All versions of free-to-game-api-wrapper with dependencies
guzzlehttp/guzzle Version ^7.2
lukasoppermann/http-status Version ^3.1
ext-json Version *