PHPackages                             rypsx/infomaniak - 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. rypsx/infomaniak

ActiveLibrary[API Development](/categories/api)

rypsx/infomaniak
================

A PHP tool to use the Infomaniak API

3.1(9y ago)2251MITPHPPHP &gt;=5.4.0

Since Feb 7Pushed 9y agoCompare

[ Source](https://github.com/w3spi5/infomaniak)[ Packagist](https://packagist.org/packages/rypsx/infomaniak)[ Docs](https://github.com/rypsx/infomaniak)[ RSS](/packages/rypsx-infomaniak/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)Dependencies (2)Versions (5)Used By (0)

Infomaniak PHP API
==================

[](#infomaniak-php-api)

[![Latest Stable Version](https://camo.githubusercontent.com/36753b08171bb02ff03b02bd49d9ae8c624fa9b82f795175d64cf44e20777926/68747470733a2f2f706f7365722e707567782e6f72672f72797073782f696e666f6d616e69616b2f762f737461626c653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/rypsx/infomaniak) [![Total Downloads](https://camo.githubusercontent.com/ae135c53717fa2968e740957f470fc1b9bdfd6aa79ec94364052fb6cad9ce7d4/68747470733a2f2f706f7365722e707567782e6f72672f72797073782f696e666f6d616e69616b2f646f776e6c6f6164733f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/rypsx/infomaniak) [![License](https://camo.githubusercontent.com/c6deeb7f94c44e89e1637144680a88c7509910fed9f9802296a6005841349e60/68747470733a2f2f706f7365722e707567782e6f72672f72797073782f696e666f6d616e69616b2f6c6963656e73653f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/rypsx/infomaniak) [![Monthly Downloads](https://camo.githubusercontent.com/13a81bfe742e8fd589698eb647e44afa562c7560c033aa007a221d681cc3a1a0/68747470733a2f2f706f7365722e707567782e6f72672f72797073782f696e666f6d616e69616b2f642f6d6f6e74686c793f666f726d61743d666c61742d737175617265)](https://packagist.org/packages/rypsx/infomaniak)[![SensioLabsInsight](https://camo.githubusercontent.com/6d0546ad4b136194a2d36919a4a91dfc55d9e3afcfb4ef02e9d7ddb1a7e5d16f/68747470733a2f2f696e73696768742e73656e73696f6c6162732e636f6d2f70726f6a656374732f66316366313562662d623137332d343131612d383466342d6333326635343639623864612f6d696e692e706e67)](https://insight.sensiolabs.com/projects/f1cf15bf-b173-411a-84f4-c32f5469b8da)

### [Access to English version](#english)

[](#access-to-english-version)

Ce package vous permet d'intégrer les statistiques de votre flux hébergé par Infomaniak dans votre projet.

Présentation
------------

[](#présentation)

Ce package vous permet d'avoir :

1. L'état de vos stream audio
2. Le nombre d'auditeurs actuellement et le maximum atteint
3. Le détail des auditeurs en temps réel (+ nouveau paramètre pour les trier selon la durée d'écoute)
4. **Les informations de localisation sur les auditeurs en cours d'écoute (NOUVEAU)**

[Utilisation](#usage)
---------------------

[](#utilisation)

Requis
------

[](#requis)

1. PHP5
2. [Carbon](https://github.com/briannesbitt/carbon)
3. [Rypsx\\IpApi](https://github.com/rypsx/ipapi)

Composer
--------

[](#composer)

Si vous utilisez [Composer](https://getcomposer.org/), vous pouvez ajouter ce package en entrant ceci dans votre terminal :

```
composer require rypsx/infomaniak

```

ou en éditant le fichier `composer.json`, tel que :

```
{
"require": {
  "rypsx/infomaniak": "^3.1"
}

```

[Exemple de retour](#exretour)
------------------------------

[](#exemple-de-retour)

### Version 2

[](#version-2)

- Correction de l'intégration via composer. Le projet est maintenant utilisable directement en utilisant les namespaces
- Possibilité de classer par la durée d'écoute les auditeurs actuels. Dernier paramètre de l'appel de la classe
- Elargissement de la classe à d'autres type de codec et de débit
- Corrections diverses

### Version 3.0

[](#version-30)

- Corrections de bugs
- Ajout de la class IpApi afin d'obtenir les informations de localisation des auditeurs (facultatif)

### Version 3.1

[](#version-31)

- Ajout d'une classe "Lite" permettant d'obtenir les informations essentielles uniquement

---

English Version
-------------------------------------------------

[](#english-version-)

This package allows you to integrate the statistics of your feed hosted by Infomaniak in your project.

Presentation
------------

[](#presentation)

This package allows you to have :

1. The state of audio streams
2. The number of listeners in real time and maximum
3. Details of listeners in real time (+ new parameter to sort or not them according to playing time)
4. **The location information on listeners while listening (NEW)**

Usage Example / Utilisation
-----------------------------------------------------------

[](#usage-example--utilisation-)

```

```

Required
--------

[](#required)

1. PHP5
2. [Carbon](https://github.com/briannesbitt/carbon)
3. [Rypsx\\IpApi](https://github.com/rypsx/ipapi)

Composer
--------

[](#composer-1)

If you use [Composer](https://getcomposer.org/), you can add this package from your terminal with :

```
composer require rypsx/infomaniak

```

or by editing `composer.json`, like that :

```
{
"require": {
  "rypsx/infomaniak": "^3.1"
}

```

Output example / Example de retour
---------------------------------------------------------------------

[](#output-example--example-de-retour--)

```
object(Rypsx\Infomaniak\Infomaniak)[3]
  protected 'login' => string '****' (length=12)
  protected 'passwd' => string '****' (length=8)
  protected 'rate' => string '128' (length=3)
  protected 'codec' => string 'mp3' (length=3)
  public 'erreur' => null
  public 'updateDate' => string '2016-09-18 13:39:14' (length=19)
  public 'flux' =>
    object(Rypsx\Infomaniak\FluxState)[2]
      public 'principal' => string 'UP' (length=2)
      public 'backup' => string 'UP' (length=2)
  public 'live' =>
    object(Rypsx\Infomaniak\LiveStats)[5]
      public 'peak' => int 154
      public 'current' => int 6
  public 'current' =>
    array (size=6)
      27020 =>
        object(Rypsx\Infomaniak\CurrentListeners)[36]
          public 'ip' => string '****' (length=13)
          public 'dureeEcoute' => string '8 heures' (length=8)
          public 'ipApi' =>
            object(Rypsx\Ipapi\Ipapi)[34]
              public 'erreur' => null
              public 'date' => string '2016-09-18 13:39:40' (length=19)
              public 'ipAdr' => string '****' (length=13)
              public 'ip2long' => int ****
              public 'ipapi' =>
                object(Rypsx\Ipapi\IpRequest)[18]
                  public 'erreur' =>
                    array (size=0)
                      empty
                  public 'status' => string 'success' (length=7)
                  public 'pays' => string 'United States' (length=13)
                  public 'paysCode' => string 'US' (length=2)
                  public 'region' => string '****' (length=8)
                  public 'ville' => string '****' (length=7)
                  public 'cp' => string '****' (length=5)
                  public 'latitude' => string '****' (length=7)
                  public 'longitude' => string '****' (length=8)
                  public 'timezone' => string 'America/Chicago' (length=15)
                  public 'isp' => string '****' (length=13)
      8535 =>
        object(Rypsx\Infomaniak\CurrentListeners)[39]
          public 'ip' => string '****' (length=11)
          public 'dureeEcoute' => string '2 heures' (length=8)
          public 'ipApi' =>
            object(Rypsx\Ipapi\Ipapi)[37]
              public 'erreur' => null
              public 'date' => string '2016-09-18 13:39:40' (length=19)
              public 'ipAdr' => string '****' (length=11)
              public 'ip2long' => int ****
              public 'ipapi' =>
                object(Rypsx\Ipapi\IpRequest)[27]
                  public 'erreur' =>
                    array (size=0)
                      empty
                  public 'status' => string 'success' (length=7)
                  public 'pays' => string 'Germany' (length=7)
                  public 'paysCode' => string 'DE' (length=2)
                  public 'region' => string '****' (length=7)
                  public 'ville' => string '****' (length=9)
                  public 'cp' => string '' (length=0)
                  public 'latitude' => string '****' (length=6)
                  public 'longitude' => string '****' (length=7)
                  public 'timezone' => string 'Europe/Berlin' (length=13)
                  public 'isp' => string '****' (length=19)
      6914 =>
        object(Rypsx\Infomaniak\CurrentListeners)[30]
          public 'ip' => string '****' (length=11)
          public 'dureeEcoute' => string '2 heures' (length=8)
          public 'ipApi' =>
            object(Rypsx\Ipapi\Ipapi)[7]
              public 'erreur' => null
              public 'date' => string '2016-09-18 13:39:40' (length=19)
              public 'ipAdr' => string '****' (length=11)
              public 'ip2long' => int ****
              public 'ipapi' =>
                object(Rypsx\Ipapi\IpRequest)[21]
                  public 'erreur' =>
                    array (size=0)
                      empty
                  public 'status' => string 'success' (length=7)
                  public 'pays' => string 'France' (length=6)
                  public 'paysCode' => string 'FR' (length=2)
                  public 'region' => string '****' (length=17)
                  public 'ville' => string '****' (length=17)
                  public 'cp' => string '****' (length=5)
                  public 'latitude' => string '****' (length=7)
                  public 'longitude' => string '****' (length=7)
                  public 'timezone' => string 'Europe/Paris' (length=12)
                  public 'isp' => string '****' (length=3)
      4605 =>
        object(Rypsx\Infomaniak\CurrentListeners)[42]
          public 'ip' => string '****' (length=13)
          public 'dureeEcoute' => string '1 heure' (length=7)
          public 'ipApi' =>
            object(Rypsx\Ipapi\Ipapi)[40]
              public 'erreur' => null
              public 'date' => string '2016-09-18 13:39:40' (length=19)
              public 'ipAdr' => string '****' (length=13)
              public 'ip2long' => int ****
              public 'ipapi' =>
                object(Rypsx\Ipapi\IpRequest)[12]
                  public 'erreur' =>
                    array (size=0)
                      empty
                  public 'status' => string 'success' (length=7)
                  public 'pays' => string 'France' (length=6)
                  public 'paysCode' => string 'FR' (length=2)
                  public 'region' => string '****' (length=14)
                  public 'ville' => string '****' (length=5)
                  public 'cp' => string '****' (length=5)
                  public 'latitude' => string '****' (length=7)
                  public 'longitude' => string '****' (length=6)
                  public 'timezone' => string 'Europe/Paris' (length=12)
                  public 'isp' => string '****' (length=6)
      2105 =>
        object(Rypsx\Infomaniak\CurrentListeners)[10]
          public 'ip' => string '****' (length=13)
          public 'dureeEcoute' => string '35 min' (length=6)
          public 'ipApi' =>
            object(Rypsx\Ipapi\Ipapi)[4]
              public 'erreur' => null
              public 'date' => string '2016-09-18 13:39:40' (length=19)
              public 'ipAdr' => string '****' (length=13)
              public 'ip2long' => int ****
              public 'ipapi' =>
                object(Rypsx\Ipapi\IpRequest)[11]
                  public 'erreur' =>
                    array (size=0)
                      empty
                  public 'status' => string 'success' (length=7)
                  public 'pays' => string 'France' (length=6)
                  public 'paysCode' => string 'FR' (length=2)
                  public 'region' => string '****' (length=17)
                  public 'ville' => string '****' (length=9)
                  public 'cp' => string '****' (length=5)
                  public 'latitude' => string '****' (length=7)
                  public 'longitude' => string '****' (length=7)
                  public 'timezone' => string 'Europe/Paris' (length=12)
                  public 'isp' => string '****' (length=8)
      467 =>
        object(Rypsx\Infomaniak\CurrentListeners)[33]
          public 'ip' => string '****' (length=13)
          public 'dureeEcoute' => string '8 min' (length=5)
          public 'ipApi' =>
            object(Rypsx\Ipapi\Ipapi)[31]
              public 'erreur' => null
              public 'date' => string '2016-09-18 13:39:40' (length=19)
              public 'ipAdr' => string '****' (length=13)
              public 'ip2long' => int ****
              public 'ipapi' =>
                object(Rypsx\Ipapi\IpRequest)[15]
                  public 'erreur' =>
                    array (size=0)
                      empty
                  public 'status' => string 'success' (length=7)
                  public 'pays' => string 'France' (length=6)
                  public 'paysCode' => string 'FR' (length=2)
                  public 'region' => string '****' (length=14)
                  public 'ville' => string '****' (length=26)
                  public 'cp' => string '****' (length=5)
                  public 'latitude' => string '****' (length=7)
                  public 'longitude' => string '****' (length=6)
                  public 'timezone' => string 'Europe/Paris' (length=12)
                  public 'isp' => string '****' (length=8)
  private 'counterIpApi' => int 6
```

**Thank you note that sensitive informations in the above example like IP adress or localisation informations were deliberately masked by `****`, because it is the result of a real test**

### Version 2

[](#version-2-1)

- Correction integration via Composer. The project is now used directly by using namespaces
- Ability to classify the playing time the current auditors. Last parameter of the class call
- Enlargement of the class to other codec type and flow
- Various fixes

### Version 3.0

[](#version-30-1)

- Corrections of bugs
- Adding IPAPI class to get location information from listeners (optional)

### Version 3.1

[](#version-31-1)

- Adding "Lite" class to obtain essential informations only

License
-------

[](#license)

**The MIT License (MIT)**

**Copyright (c) 2016 Rypsx Dev**

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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.

###  Release Activity

Cadence

Every ~76 days

Total

4

Last Release

3566d ago

Major Versions

1.0 → 2.02016-07-10

2.0 → 3.02016-09-18

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/8407711?v=4)[iυoni](/maintainers/w3spi5)[@w3spi5](https://github.com/w3spi5)

---

Top Contributors

[![Rypsx](https://avatars.githubusercontent.com/u/73160340?v=4)](https://github.com/Rypsx "Rypsx (1 commits)")

---

Tags

phpapitoolinfomaniak

### Embed Badge

![Health badge](/badges/rypsx-infomaniak/health.svg)

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

###  Alternatives

[temporal/sdk

Temporal SDK

4102.7M22](/packages/temporal-sdk)[tustin/psn-php

PHP wrapper for the PlayStation API.

37539.9k1](/packages/tustin-psn-php)[yxx/laravel-quick

agile development

145.5k](/packages/yxx-laravel-quick)

PHPackages © 2026

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