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.

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 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:

  1. Platform
  2. Category
  3. 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:

  1. AlphabeticalSort
  2. PopularitySort
  3. ReleaseDateSort
  4. RelevanceSort
  5. Sort

Search Terms

The list of search terms is:

  1. Action
  2. ActionRolePlayingGame
  3. Anime
  4. BattleRoyale
  5. Card
  6. Fantasy
  7. Fighting
  8. FirstPerson
  9. Flight
  10. Horror
  11. LowSpecifications
  12. MartialArts
  13. MassivelyMultiplayerOnline
  14. MassivelyMultiplayerOnlineFirstPersonShooter
  15. MassivelyMultiplayerOnlineRealTimeStrategy
  16. MassivelyMultiplayerOnlineRolePlayingGame
  17. MassivelyMultiplayerOnlineThirdPersonShooter
  18. Military
  19. MultiplayerOnlineBattleArena
  20. OpenWorld
  21. Permadeath
  22. Pixel
  23. PlayerVersusEnvironment
  24. PlayerVersusPlayer
  25. Racing
  26. Sailing
  27. Sandbox
  28. ScienceFiction
  29. SearchTerm
  30. Shooter
  31. SideScroller
  32. Social
  33. Space
  34. Sports
  35. Strategy
  36. Superhero
  37. Survival
  38. Tank
  39. ThirdPerson
  40. ThreeDimensions
  41. TopDown
  42. TowerDefense
  43. TurnBased
  44. TwoDimensions
  45. Voxel
  46. Zombie

All versions of free-to-game-api-wrapper with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
guzzlehttp/guzzle Version ^7.2
lukasoppermann/http-status Version ^3.1
ext-json Version *
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 nellyt/free-to-game-api-wrapper contains the following files

Loading the files please wait ....