{"id":20626316,"url":"https://github.com/sct/league","last_synced_at":"2025-04-15T15:20:38.888Z","repository":{"id":12434754,"uuid":"15091457","full_name":"sct/League","owner":"sct","description":"A simple PHP wrapper for the official League of Legends API","archived":false,"fork":false,"pushed_at":"2019-02-10T05:41:23.000Z","size":117,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-28T21:42:48.985Z","etag":null,"topics":[],"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/sct.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":"2013-12-10T22:36:06.000Z","updated_at":"2018-12-16T02:32:35.000Z","dependencies_parsed_at":"2022-09-13T11:01:31.051Z","dependency_job_id":null,"html_url":"https://github.com/sct/League","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sct%2FLeague","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sct%2FLeague/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sct%2FLeague/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sct%2FLeague/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sct","download_url":"https://codeload.github.com/sct/League/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249094939,"owners_count":21211837,"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":[],"created_at":"2024-11-16T13:12:41.062Z","updated_at":"2025-04-15T15:20:38.864Z","avatar_url":"https://github.com/sct.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\"League\" PHP API Library\n======\n\nA simple PHP library for the official League of Legends API\n\nStill heavily in development. Currently supports getting Summoner data and Champion data. Can also request specific summoner stats for champions or game types.\n\nRequirements\n---------\n* PHP \u003e=5.3\n* PHP Curl Extension\n\nInstallation\n---------\nYou can install this library using composer. Learn about composer @ [getcomposer.org](http://getcomposer.org/)\n\n1) Require the package in your composer.json\n\n    \"sct/league\": \"dev-master\"\n\n2) Run Composer to install the new requirement\n\n    php composer.phar install\nor\n\n    php composer.phar update\n\nNow make sure you are using the composer autoload in your project:\n\n    require 'vendor/autoload.php';\n\n    use sct\\League\\Summoner;\n\n    $summoner = new Summoner(\"summoner\", \"region\", \"APIKEY\");\n\nAnd thats it you are good to go.\n\nChanges\n---------\n\nIn version 1.4 the Summoner constructor was changed. You should use the factory method in Summoner to create Summoner objects. The factory supports requesting mulitple Summoners with one request.\n\nExample Usage for multiple summoners\n\n    $summoners = Summoner::factory(array(\"Dyrus\", \"Xpecial\"), \"na\", \"api_key\");\n\n    $summoners['Dyrus']-\u003egetSummonerLevel();\n\nUsage\n---------\n\nGetting Summoner Data\n\n    $dyrus = Summoner::factory(\"Dyrus\", \"na\", \"api_key\");\n\n    $dyrus-\u003egetSummonerLevel();\n    $dyrus-\u003egetStats();\n    $dyrus-\u003egetRankedStats();\n    $dyrus-\u003egetStatsForGameType(GameType::Unranked);\n    $dyrus-\u003egetStatsForChampionByName(\"Darius\");\n    $dyrus-\u003egetMatchHistory();\n    $dyrus-\u003egetMasteries();\n    $dyrus-\u003egetRunes();\n\n    // New Methods\n    $dyrus-\u003egetLeague();\n    $dyrus-\u003egetTeams();\n\nGetting Champion Data\n\n    Champions::loadChampions(\"na\", \"api key\");\n\n    $anivia = Champions::getChampion(\"Anivia\");\n\n    $anivia-\u003egetActive();\n    $anivia-\u003egetRanks();\n    $anivia-\u003egetRankedPlayEnabled();\n    $anivia-\u003egetFreeToPlay();\n\n\nLicense\n---------\nThis project is licensed under the MIT License. Feel free to do whatever you want with it.\n\nIf you do use this project, it would be great if you could add credit (although you don't have to!) Also I would love to see where and how you are using the project, so send me a message and let me know where I can check it out!\n\n*This product is not endorsed, certified or otherwise approved in any way by Riot Games, Inc. or any of its affiliates.*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsct%2Fleague","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsct%2Fleague","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsct%2Fleague/lists"}