{"id":13828483,"url":"https://github.com/dborsatto/php-giantbomb","last_synced_at":"2025-04-07T01:57:15.726Z","repository":{"id":36109235,"uuid":"40411012","full_name":"dborsatto/php-giantbomb","owner":"dborsatto","description":"A PHP library that acts as a wrapper for the GiantBomb API","archived":false,"fork":false,"pushed_at":"2021-06-17T15:26:36.000Z","size":92,"stargazers_count":11,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-14T07:38:27.852Z","etag":null,"topics":["php","php-library"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dborsatto.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-08-08T17:36:23.000Z","updated_at":"2022-03-31T07:12:13.000Z","dependencies_parsed_at":"2022-08-21T10:20:20.841Z","dependency_job_id":null,"html_url":"https://github.com/dborsatto/php-giantbomb","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dborsatto%2Fphp-giantbomb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dborsatto%2Fphp-giantbomb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dborsatto%2Fphp-giantbomb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dborsatto%2Fphp-giantbomb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dborsatto","download_url":"https://codeload.github.com/dborsatto/php-giantbomb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247578626,"owners_count":20961270,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php","php-library"],"created_at":"2024-08-04T09:02:48.793Z","updated_at":"2025-04-07T01:57:15.704Z","avatar_url":"https://github.com/dborsatto.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"# php-giantbomb\n\n[![Packagist](https://img.shields.io/packagist/v/dborsatto/php-giantbomb.svg)](https://packagist.org/packages/dborsatto/php-giantbomb)\n[![Packagist](https://img.shields.io/packagist/dt/dborsatto/php-giantbomb.svg)](https://packagist.org/packages/dborsatto/php-giantbomb)\n[![Packagist](https://img.shields.io/packagist/l/dborsatto/php-giantbomb.svg)](https://packagist.org/packages/dborsatto/php-giantbomb)\n\nThis is a library that acts as a wrapper for GiantBomb's API.\n\n## Install\n\nVia Composer\n\n``` bash\n$ composer require dborsatto/php-giantbomb\n```\n\n## Usage\n\n``` php\n\n$apiKey = 'YouApiKey';\n\n// Create a Config object and pass it to the Client\n$config = new DBorsatto\\GiantBomb\\Configuration($apiKey);\n$client = new DBorsatto\\GiantBomb\\Client($config);\n\n// OPTIONAL: use a PSR-16 simple cache pool\n$cache = new Cache\\Adapter\\PHPArray\\ArrayCachePool();\n$client = new DBorsatto\\GiantBomb\\Client($config, $cache);\n\n// Standard query creation process\n$query = DBorsatto\\GiantBomb\\Query::create()\n    -\u003eaddFilterBy('name', 'Uncharted')\n    -\u003esortBy('original_release_date', 'asc')\n    -\u003esetFieldList(['id', 'name', 'deck'])\n    -\u003esetParameter('limit', '100')\n    -\u003esetParameter('offset', '0');\n$games = $client-\u003efind('Game', $query);\necho count($games).\" Game objects loaded\\n\";\n\n// These two options are equivalent\n$game = $client-\u003efindOne('Game', Query::createForResourceId('3030-22420'));\n// The findWithResourceID method is just a shortcut\n$game = $client-\u003efindWithResourceID('Game', '3030-22420');\necho $game-\u003eget('name').\" object loaded\\n\";\n\n// These two options are equivalent\n$query = DBorsatto\\GiantBomb\\Query::create()\n    -\u003esetParameter('query', 'Uncharted')\n    -\u003esetParameter('resources', 'game,franchise');\n$results = $client-\u003efind('Search', $query);\n// The search method is just a shortcut\n$results = $client-\u003esearch('Uncharted', 'game,franchise');\necho count($results).\" Search objects loaded\\n\";\n```\n\nFor the full option list visit [GiantBomb's API doc](http://www.giantbomb.com/api/documentation).\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdborsatto%2Fphp-giantbomb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdborsatto%2Fphp-giantbomb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdborsatto%2Fphp-giantbomb/lists"}