https://github.com/exitialis/mas
Minecraft authentication server
https://github.com/exitialis/mas
dle laravel minecraft skin wordpress
Last synced: about 2 months ago
JSON representation
Minecraft authentication server
- Host: GitHub
- URL: https://github.com/exitialis/mas
- Owner: Exitialis
- License: gpl-3.0
- Created: 2016-08-22T22:49:34.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2017-03-06T18:48:13.000Z (about 9 years ago)
- Last Synced: 2025-01-17T11:13:08.228Z (over 1 year ago)
- Topics: dle, laravel, minecraft, skin, wordpress
- Language: PHP
- Size: 163 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Minecraft auth service
================
[](https://travis-ci.org/Exitialis/Mas)
[](https://packagist.org/packages/exitialis/mas)
[](https://packagist.org/packages/exitialis/mas)
[](https://packagist.org/packages/exitialis/mas)
[](https://packagist.org/packages/exitialis/mas)
[](https://packagist.org/packages/exitialis/mas)
The package designed for your site integration with your minecraft client. The package includes the following features:
- Authenticate users from your site, which can work on engines, like WordPress or DLE.
- Skins and cloaks system for users.
- Default skins and cloaks for all users on your server, that don't have their own.
Navigation
--------
- [Required](#required)
- [Installation](#installation)
- [Usage](#usage)
- [Testing](#testing)
- [Contributing](#contributing)
- [Credits](#credits)
- [License](#license)
Required
--------
- Install Laravel.
- Configure connection to MySQL in Laravel.
Installation
------------
Add the mas package to your `composer.json` file.
``` json
{
"require": {
"exitialis/mas": "1.0.*"
}
}
```
Or via the command line in the root of your Laravel installation.
DON'T USING ROOT USER!
``` bash
$ composer require "exitialis/mas"
```
Add to your `config/app.php` file in Laravel.
```
'providers' => [
.....
/*
* Package Service Providers...
*/
Exitialis\Mas\MasServiceProvider::class,
.....
]
```
Via the command line in the root of your Laravel installation.
``` bash
$ php artisan migrate
$ php artisan vendor:publish
```
PROFIT :)
Usage
-----
Edit your file `config/mas.php` under CMS DLE or WordPress.
DLE:
```
/**
* Available hashes:
* wp, dle
*/
'hash' => 'dle',
'repositories' => [
'user' => [
'login_column' => 'name',
'password_column' => 'password',
'table_name' => 'dle_users',
'key' => 'user_id',
],
],
```
WP:
```
/**
* Available hashes:
* wp, dle
*/
'hash' => 'wp',
'repositories' => [
'user' => [
'login_column' => 'user_login',
'password_column' => 'user_pass',
'table_name' => 'bjsvyp8zhw_users',
'key' => 'ID',
],
],
```
Create folders in the folder `public` of your Laravel installation:
- textures/cloak
- textures/skin
- cache
- clients/hash
- clients/{NAME_CLIENTS} (HiTech, Sandbox, Assets, Java, Etc)
Testing
-------
``` bash
$ phpunit
```