2017 © Pedro Peláez
 

library mc-auth

image

mattiabasone/mc-auth

  • Tuesday, July 31, 2018
  • by mattiabasone
  • Repository
  • 6 Watchers
  • 27 Stars
  • 89 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 1 Open issues
  • 3 Versions
  • 27 % Grown

The README.md

MCAuth

Minecraft PHP Authentication for new Mojang Yggdrasil (http://wiki.vg/Authentication) authentication scheme, (*1)

Example:

<?php
include("MCAuth.class.php");
$MCAuth = new MCAuth();
if ($MCAuth->authenticate('username or email', 'password') == TRUE) {
    echo $MCAuth->account['id'];            // hexadecimal user ID
    echo $MCAuth->account['username'];      // account username
    echo $MCAuth->account['token'];         // access token
} else {
    echo $MCAuth->autherr;                  // print error
}

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., (*2)

The Versions

31/07 2018

dev-master

9999999-dev

  Sources   Download

19/03 2017

dev-composer

dev-composer https://github.com/mattiabasone/MCAuth

Minecraft PHP Authentication for Mojang Yggdrasil authentication scheme.

  Sources   Download

BSD-4-Clause

The Requires

 

auth minecraft

03/02 2017

2.0

2.0.0.0 https://github.com/mattiabasone/MCAuth

Minecraft PHP Authentication for Mojang Yggdrasil authentication scheme.

  Sources   Download

BSD-4-Clause

The Requires

 

auth minecraft