{"id":23107605,"url":"https://github.com/saadj55/laravel-pubg","last_synced_at":"2025-10-06T14:15:01.959Z","repository":{"id":62538849,"uuid":"128118488","full_name":"saadj55/laravel-pubg","owner":"saadj55","description":"A Laravel Package for PUBG Official API","archived":false,"fork":false,"pushed_at":"2019-10-02T11:23:18.000Z","size":19,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-02T11:52:06.795Z","etag":null,"topics":["api","laravel","playerunknow-s","pubg","pubgapi"],"latest_commit_sha":null,"homepage":null,"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/saadj55.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-04T20:32:37.000Z","updated_at":"2024-07-02T20:45:02.000Z","dependencies_parsed_at":"2022-11-02T16:15:21.416Z","dependency_job_id":null,"html_url":"https://github.com/saadj55/laravel-pubg","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saadj55/laravel-pubg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saadj55%2Flaravel-pubg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saadj55%2Flaravel-pubg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saadj55%2Flaravel-pubg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saadj55%2Flaravel-pubg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saadj55","download_url":"https://codeload.github.com/saadj55/laravel-pubg/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saadj55%2Flaravel-pubg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278621893,"owners_count":26017262,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["api","laravel","playerunknow-s","pubg","pubgapi"],"created_at":"2024-12-17T01:14:53.958Z","updated_at":"2025-10-06T14:15:01.938Z","avatar_url":"https://github.com/saadj55.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Package for PUBG API \n\nA Laravel Package for PUBG Official API\n\n[![Total Downloads](https://poser.pugx.org/saadj55/laravel-pubg/downloads)](https://packagist.org/packages/saadj55/laravel-pubg)\n[![License](https://poser.pugx.org/saadj55/laravel-pubg/license)](https://packagist.org/packages/saadj55/laravel-pubg)\n## Installation\n\nRequire this package with composer.\n\n```shell\ncomposer require saadj55/laravel-pubg\n```\n\n## Setup\n### Laravel 5.5+ Integration\nPackage discovery is enabled so need for additional configuration.\n### Laravel 5.* Integration\nAfter installation, open ```config/app.php``` and add the following line to ```providers``` key\n ```Saadj55\\LaravelPubg\\Providers\\LaravelPubgServiceProvider::class,``` \nAfter that, run the following command to publish configuration file.\n```shell\nphp artisan vendor:publish\n```\n\nSet your access token in the ```.env``` file as ```PUBG_ACCESS_TOKEN=\u003caccess_token\u003e```\n\nSet the region you want to query as ```PUBG_REGION=\u003cregion\u003e``` in the ```.env``` file.\n\nSet the platform you want to query as ```PUBG_PLATFORM=\u003cplatform\u003e``` in the ```.env``` file\n\n## Usage\n\nYou can simply use the API by adding ```use Saadj55\\LaravelPubg\\Pubg;``` wherever you want to call the API\nand making a new instance of the ```Pubg``` class as ```$pubg = new Pubg;```\n\n## API\n\n### getPlayerById\n\n```shell\n$pubg = new Pubg;\n$player = $pubg-\u003egetPlayerById($player_id);\n```\n\n### getPlayersByIds\n\n```shell\n$pubg = new Pubg;\n$player_ids = [1,2,3,4,5];\n$player = $pubg-\u003egetPlayersByIds($player_ids);\n```\n\n### getPlayersByNames\n\n```shell\n$pubg = new Pubg;\n$player_names = ['foo','bar'];\n$player = $pubg-\u003egetPlayersByName($player_names);\n```\n\n### getMatchById\n\n```shell\n$pubg = new Pubg;\n$match = $pubg-\u003egetMatchById($match_id);\n```\nBy default, region name is set from the ```app/config/pubg.php```. \nIf you need to set the region on the fly, You can call ```$pubg-\u003esetRegion($region_name)``` before calling any\nof the above methods.\nYou can also call ```$pubg-\u003esetPlatform($platform)```\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaadj55%2Flaravel-pubg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaadj55%2Flaravel-pubg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaadj55%2Flaravel-pubg/lists"}