{"id":25182408,"url":"https://github.com/mattiabasone/mcauth","last_synced_at":"2025-05-07T09:25:30.655Z","repository":{"id":10891132,"uuid":"13182778","full_name":"mattiabasone/MCAuth","owner":"mattiabasone","description":"Minecraft PHP Authentication for Mojang Yggdrasil authentication scheme ","archived":false,"fork":false,"pushed_at":"2017-03-19T20:36:38.000Z","size":17,"stargazers_count":31,"open_issues_count":1,"forks_count":8,"subscribers_count":6,"default_branch":"composer","last_synced_at":"2025-03-31T08:38:46.290Z","etag":null,"topics":["minecraft","minecraft-php-authentication","mojang-authentication","php"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"invkrh/spark-mooc","license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mattiabasone.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-09-28T23:38:25.000Z","updated_at":"2024-02-01T20:52:44.000Z","dependencies_parsed_at":"2022-09-05T07:31:21.307Z","dependency_job_id":null,"html_url":"https://github.com/mattiabasone/MCAuth","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattiabasone%2FMCAuth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattiabasone%2FMCAuth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattiabasone%2FMCAuth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mattiabasone%2FMCAuth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mattiabasone","download_url":"https://codeload.github.com/mattiabasone/MCAuth/tar.gz/refs/heads/composer","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252849359,"owners_count":21813804,"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":["minecraft","minecraft-php-authentication","mojang-authentication","php"],"created_at":"2025-02-09T17:32:02.875Z","updated_at":"2025-05-07T09:25:30.633Z","avatar_url":"https://github.com/mattiabasone.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MCAuth\n\nMinecraft PHP Authentication for Mojang Yggdrasil (http://wiki.vg/Authentication) authentication scheme \n\n### Installation\n\n```shell\ncomposer require mattiabasone/mc-auth\n```\n\n### Example:\n\nCreate new MCAuth Object\n```php\n$MCAuth = new MCAuth\\Api();\n```\n\nAuthentication:\n```php\ntry {\n    $account = $MCAuth-\u003esendAuth(\"myemail@example.org\", \"mypassword\");\n    var_dump($account);\n} catch (Exception $e) {\n    echo $e-\u003egetMessage();\n}\n```\n\nGet UUID from username\n```php\ntry {\n    $uuid = $MCAuth-\u003eusernameToUuid(\"_Cyb3r\");\n    var_dump($uuid);\n} catch (Exception $e) {\n    echo $e-\u003egetMessage();\n}\n```\n\nGet username from UUID\n```php\ntry {\n    $username = $MCAuth-\u003euuidToUsername(\"be1cac3b60f04e0dba12c77cc8e0ec21\");\n    var_dump($username);\n} catch (Exception $e) {\n    echo $e-\u003egetMessage();\n}\n```\n\n\n### Warning!\nMojang authentication system permits only one active session as reported in the wiki: \n\"Only the one with the latest session ID for your account are allowed to join servers.\", so you will be disconnected from the server where you are playing if you try to login via MCAuth.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattiabasone%2Fmcauth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmattiabasone%2Fmcauth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmattiabasone%2Fmcauth/lists"}