PHPackages                             progi1984/phpglances - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. progi1984/phpglances

ActiveLibrary[API Development](/categories/api)

progi1984/phpglances
====================

A PHP library for the Glances XML/RPC API

9421[3 issues](https://github.com/Progi1984/PhpGlances/issues)PHP

Since Jan 3Pushed 12y ago1 watchersCompare

[ Source](https://github.com/Progi1984/PhpGlances)[ Packagist](https://packagist.org/packages/progi1984/phpglances)[ RSS](/packages/progi1984-phpglances/feed)WikiDiscussions master Synced 4d ago

READMEChangelog (2)DependenciesVersions (1)Used By (0)

PHPGlances
==========

[](#phpglances)

A PHP library for the Glances XML/RPC API

What is Glances?

- [Glances](https://github.com/nicolargo/glances.git) is a CLI system monitor written in Python

What does this library do?

- If Glances is run as `glances -s` then information can be retrieved from it using an XML/RPC API

Read the specification of the Glances API:

-

Dependencies: Per default, any extensions are useful. But if extensions [PHP-Curl](http://php.net/manual/fr/book.curl.php), [PHP-JSON](http://php.net/manual/fr/book.json.php), [PHP-SimpleXML](http://php.net/manual/fr/book.simplexml.php) and [PHP-XML-RPC](http://php.net/manual/fr/book.xmlrpc.php) are load, then PHPGlances will be more optimal.

Example usage:

```
  include_once '../PHPGlances/PHPGlances.php';

  $oGlances = new PHPGlances('http://127.0.0.1', 61209);
  $bAlive = $oGlances->pingServer();
  if(!$bAlive){
    echo 'Can\'t connect to the server';
  } else {
    $res = $oGlances->listMethods();
    echo 'listMethods : ';
    echo '';
    foreach($res as $item){
      echo ''.$item.'';
    }
    echo '';

    echo 'getCore : ';
    echo 'Core : '.$oGlances->getCore().'';
    echo '';
  }
```

Changelog
---------

[](#changelog)

**Version 0.1**

- Initial Release

**Version 0.2**

- ADDED pingServer() which return a boolean to check if Glances server is available
- ADDED Replacement for functions used in Curl / JSON / SimpleXML / XmlRPC (Issue [\#3](https://github.com/Progi1984/PHPGlances/issues/3))
- ADDED getError() which return a string with the intercepted error when a function (like listMethods()) return false
- ADDED setCacheStatus() which permits to disable and enable the cache &amp; getCacheStatus() which permits to get the status (true or false) of the cache

**Version 0.3** **current**

###  Health Score

21

—

LowBetter than 19% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/792895a1976f2be3789d45a658de84d94a901d1137b4417b27840ccaa0dba2e3?d=identicon)[Progi1984](/maintainers/Progi1984)

---

Top Contributors

[![Progi1984](https://avatars.githubusercontent.com/u/1533248?v=4)](https://github.com/Progi1984 "Progi1984 (52 commits)")

---

Tags

apiglancesphp

### Embed Badge

![Health badge](/badges/progi1984-phpglances/health.svg)

```
[![Health](https://phpackages.com/badges/progi1984-phpglances/health.svg)](https://phpackages.com/packages/progi1984-phpglances)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
