Coder Social home page Coder Social logo

fivem-server-status-php's Introduction

PHP Fivem Server Status / Library

Bilgilendirme

Version 1 | Min Php Version: 5.6 C# Version

Kurulum

Include 'class.php' your file.

Kullanım

include 'class.php';

use EpEren\Fivem\ServerStatus\Fivem;

$fivem= new Fivem("91.134.243.4:30120");
$info= $fivem->GetInfo();

$Players = $info["Players"];
$Server = $info["Server"];
$Client = $info["Clients"];
$Vars = $info["Vars"];

// Basic use for Players list

<table style="width:40%">
  <tr>
    <th style="color:red;">Name</th>
    <th style="color:red;">Ping</th>
  </tr>
  <tr>
    <th>-</th>
    <th>-</th>
  </tr>
  <?php
  for ($i=0; $i <count($Players) ; $i++) {
  ?>
  <tr>
    <th><?php echo $Players[$i]["name"]; ?></th>
    <th><?php echo $Players[$i]["ping"]; ?></th>
  </tr>
  <?php
  }

  ?>
</table>

Geliştirci: © ErenKrt

fivem-server-status-php's People

Contributors

erenkrt 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.