Giter VIP home page Giter VIP logo

steam-group-xml's Introduction

Steam Group XML

[EN]:

This script displays your Member Counter as well as Avatar & Group name.

If you are experienced on PHP and XML you can get other information using this script.

[PT]:

Este script mostra o Contador de Membros tal como o Avatar e o Nome do Grupo.

Se és expriente em PHP e XML poderes obter outras informações usando este script.

Requirements:

  • PHP (Version 5.6.0 or newer)
  • allow_url_fopen enabled or Curl installed.

Script

steamgroup.php

<?php

$curl = true; // Use this if your hosting provider doesn't have allow_url_fopen enabled.
$steamgroup = "TEST"; // Custom Group URL

$url = "https://steamcommunity.com/groups/" . $steamgroup . "/memberslistxml/?xml=1";

if ($curl == true) {
  $ch = curl_init();
  curl_setopt($ch,CURLOPT_URL,$url);
  curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,2);
  curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
  curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
  $data = curl_exec($ch);
  $xml = simplexml_load_string($data);
  $json = json_encode($data);
  $array = json_decode($json,TRUE);
  curl_close($ch);
} else if ($curl == false) {
  $xml = simplexml_load_file($url);
} else {
  die("Invalid Configuration.");
}

$avatarfull = $xml->groupDetails->avatarFull;
$groupname = $xml->groupDetails->groupName;
$members = $xml->groupDetails->memberCount;

?>

Contact me

steam-group-xml's People

Contributors

dikan1337 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Forkers

clevelandman99

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.