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 3w 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 35% 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

3436d 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

[aws/aws-sdk-php

AWS SDK for PHP - Use Amazon Web Services in your PHP project

6.3k543.5M2.6k](/packages/aws-aws-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k656.1k38](/packages/neuron-core-neuron-ai)[ellaisys/aws-cognito

Laravel Authentication using AWS Cognito (Web and API)

123256.9k1](/packages/ellaisys-aws-cognito)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3741.3M46](/packages/tencentcloud-tencentcloud-sdk-php)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[kinde-oss/kinde-auth-php

Kinde PHP SDK for authentication

2287.5k3](/packages/kinde-oss-kinde-auth-php)

PHPackages © 2026

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