Code Monkey home page Code Monkey logo

php-minecraft-stat-ranking's Introduction

PHP 基于MySQL的排行榜功能

获取MySQL数据库信息并进行排名, 大多适用于小游戏, 基于PHP + MySQL + Bootsrap, 通过MySQL获取服务器玩家的数据. 差不多想到的就这么多了, 详细的配置在 example.php 内有介绍. 根据自己 MySQL 的数据来填入对应的值即可. 使用这个还是需要有一些基础的人来使用的. 以下是简单的配置介绍

你需要先安装PHP + MySQL

Credits - 感谢

捐助我完成项目的用户不一一列出了xD

TO-DO

1.兼容LiteBan实现显示被封禁的作弊玩家 2.点击玩家可显示玩家个人资料

目录结构

- css
  bootstrap.css
- img
  ...
- inc
  config.php - 页面自定义配置
  db-settings.php - 数据库连接配置
  footer.php - 页脚信息 - 无需配置
example.php - 演示页面
index.php - 欢迎页面

config.php - 页面自定义配置

支持配置以下内容: 排名数字自定义内容 / 玩家名称自定义内容 / 头像获取API地址 / 服务器信息等等

db-settings.php - 数据库连接配置

$host = "localhost";
$username = "root";
$password = "root";
$database = "test";

Bootsrap - 关于框架

基于 Bootsrap 的页面, 你可以在 http://getbootstrap.com/ 获取更多帮助.

php-minecraft-stat-ranking's People

Contributors

502647092 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.