Download the PHP package amalfra/giantbomb without Composer

On this page you can find all versions of the php package amalfra/giantbomb. 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 giantbomb

Giantbomb API

GitHub release Build Status Coverage Status

A library for easy interaction with Giantbomb API. Features are:

Get your API Key at https://www.giantbomb.com/api

Requirements

Installation

This will create a vendor directory (if you dont already have one) and set up the autoloading classmap.

Usage

Once everything is installed, you should be able to load the composer autoloader in your code.

You can load the wrapper classes using namespace as:

Now create a new object

Now the available API methods can be called using the instance. All the result from API will be returned as an object. If any status code other than 200 is returned an exception would be thrown.

Currently Available Methods

Method Description
game(game_id, field_list) field_list should be comma seperated values
games(
    field_list: 'name,id',
    limit: 10,
    offset: 20,
    platforms: 2,
    sort: 'id:desc',
    filter: 'aliases:Desert Strike'
)
company(company_id, field_list) field_list should be comma seperated values
companies(
    field_list: 'name,id',
    limit: 10,
    offset: 20,
    sort: 'id:desc',
    filter: 'id:7'
)
genre(genre_id, field_list) field_list should be comma seperated values
genres(
    field_list: 'name,id',
    limit: 10,
    offset: 20
)
platform(platform_id, field_list) field_list should be comma seperated values
platforms(
    field_list: 'name,id',
    limit: 10,
    offset: 20,
    sort: 'id:desc',
    filter: 'id:3'
)
review(review_id, field_list) field_list should be comma seperated values
reviews(
    field_list: 'deck,id',
    limit: 10,
    offset: 20,
    sort: 'id:desc',
    filter: 'id:3'
)
game_rating(game_rating_id, field_list) field_list should be comma seperated values
game_ratings(
    field_list: 'name,id',
    limit: 10,
    offset: 20,
    sort: 'id:desc',
    filter: 'id:3'
)
character(character_id, field_list) field_list should be comma seperated values
characters(
    field_list: 'name,id',
    limit: 10,
    offset: 20,
    sort: 'id:desc',
    filter: 'id:3'
)
search(
    field_list: 'name,id',
    query: halo'',
    limit: 20,
    page: 2
    resources: 'game',
)

Cache

You can configure caching to prevent hitting API if same queries are made again. Currently supported caching methods are:

Cache can be configured using method of GiantBomb instance. If it's not configured caching will be disabled and API will always be hit each time a method is called. method accepts two parameter:

  1. [required] cache type eg: inmemory, redis etc
  2. [optional] an associative array in which additional configuration details required for setting up the cache method can be given eg: redis server host and port values

using inmemory cache method

This method does not need any additional configuration option than just activating by calling method with as first parameter. eg:

using redis cache method

This method can be activated by calling method with as first parameter. You will also need to specify redis server host and port as second parameter. eg:

Development

Questions, problems or suggestions? Please post them on the issue tracker.

You can contribute changes by forking the project and submitting a pull request. Feel free to contribute :heart_eyes:

UNDER MIT LICENSE

The MIT License (MIT)

Copyright (c) 2013 Amal Francis

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


All versions of giantbomb with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1.0
rmccue/requests Version ^2.0.4
ext-redis Version *
symfony/cache Version ^6.1
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 amalfra/giantbomb contains the following files

Loading the files please wait ...