PHPackages                             zackdevine/mc-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. zackdevine/mc-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

zackdevine/mc-auth
==================

Minecraft PHP Authentication for Mojang Yggdrasil authentication scheme.

2.0(9y ago)024BSD-4-ClausePHPPHP &gt;=7.0

Since Feb 3Pushed 5y agoCompare

[ Source](https://github.com/zackdevine/MCAuth)[ Packagist](https://packagist.org/packages/zackdevine/mc-auth)[ Docs](https://github.com/mattiabasone/MCAuth)[ RSS](/packages/zackdevine-mc-auth/feed)WikiDiscussions composer Synced 1w ago

READMEChangelogDependencies (1)Versions (2)Used By (0)

MCAuth
======

[](#mcauth)

Minecraft PHP Authentication for Mojang Yggdrasil () authentication scheme

### Installation

[](#installation)

```
composer require mattiabasone/mc-auth
```

### Example:

[](#example)

Create new MCAuth Object

```
$MCAuth = new MCAuth\Api();
```

Authentication:

```
try {
    $account = $MCAuth->sendAuth("myemail@example.org", "mypassword");
    var_dump($account);
} catch (Exception $e) {
    echo $e->getMessage();
}
```

Get UUID from username

```
try {
    $uuid = $MCAuth->usernameToUuid("_Cyb3r");
    var_dump($uuid);
} catch (Exception $e) {
    echo $e->getMessage();
}
```

Get username from UUID

```
try {
    $username = $MCAuth->uuidToUsername("be1cac3b60f04e0dba12c77cc8e0ec21");
    var_dump($username);
} catch (Exception $e) {
    echo $e->getMessage();
}
```

### Warning!

[](#warning)

Mojang authentication system permits only one active session as reported in the wiki: "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.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3391d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/950d514d9f8b4dca951c85063b3a29ee3026e0bcbe0d20bee52faa3640fc995f?d=identicon)[zackdevine](/maintainers/zackdevine)

---

Top Contributors

[![mattiabasone](https://avatars.githubusercontent.com/u/3951536?v=4)](https://github.com/mattiabasone "mattiabasone (18 commits)")

---

Tags

authminecraft

### Embed Badge

![Health badge](/badges/zackdevine-mc-auth/health.svg)

```
[![Health](https://phpackages.com/badges/zackdevine-mc-auth/health.svg)](https://phpackages.com/packages/zackdevine-mc-auth)
```

###  Alternatives

[kreait/firebase-tokens

A library to work with Firebase tokens

24040.8M14](/packages/kreait-firebase-tokens)[ellaisys/aws-cognito

AWS Cognito package that allows Auth and other related features using the AWS SDK for PHP

120220.7k1](/packages/ellaisys-aws-cognito)[invisnik/laravel-steam-auth

Laravel Steam Auth

171160.6k1](/packages/invisnik-laravel-steam-auth)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2369.5k3](/packages/kinde-oss-kinde-auth-php)[asundust/auth-captcha

Sliding captcha for Laravel-Admin auth, Multiple platform support / Laravel-Admin登录 滑动验证插件 多平台支持

593.6k](/packages/asundust-auth-captcha)[casdoor/casdoor-php-sdk

PHP client SDK for Casdoor

2219.3k](/packages/casdoor-casdoor-php-sdk)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
