PHPackages                             hbedek/ec-interface - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. hbedek/ec-interface

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hbedek/ec-interface
===================

Interface to connect to Electricity Cost

v1.3(4y ago)020MITPHP

Since Aug 29Pushed 4y ago1 watchersCompare

[ Source](https://github.com/hbedek/ec-interface)[ Packagist](https://packagist.org/packages/hbedek/ec-interface)[ Docs](https://github.com/hbedek/ec-interface)[ RSS](/packages/hbedek-ec-interface/feed)WikiDiscussions main Synced today

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

EC\_Interface
=============

[](#ec_interface)

Interface permettant de se connecter à ElectricityCost

L'intégration de l'interface se fait via composer:

`"require": { "hbedek/ec-interface": "dev-main" },`

Fichier plugin.php
------------------

[](#fichier-pluginphp)

Ici il y a plusieurs modifications à faire.

Pour afficher la configuration nécessaire à Electricity Cost: ` {{Calculer le coût de l'équipement}} {{Nécessite le plugin Electricity Cost}}

` `Plugin::getConfigEqHtml()` doit renvoyer vers la fonction :

`public static function isPluginInstalled() { return ECInterfaceImpl::isPluginInstalled(); }`

A rajouter au chargement des JS: `

` `Plugin::isPluginInstalled()` doit renvoyer vers la fonction: `public static function getConfigEqHtml() { $elecApi = new ECInterfaceImpl(); return $elecApi->getConfigEqHtml(); }`

Fichier plugin.class.php
------------------------

[](#fichier-pluginclassphp)

### Création des commandes

[](#création-des-commandes)

A la création des commandes, il faut appeler: `$elecApi = new ECInterfaceImpl(); $elecApi->createECCmds($this, $needRefreshCmd);`Avec `$this` le contexte de la classe plugin.class.php Avec `$needRefreshCmd` un booléen pour créer ou non une commande refresh.

Cette fonction va créer toutes les commandes nécessaire à Electricity Cost

### Rafraîchissement

[](#rafraîchissement)

###  Health Score

24

—

LowBetter than 30% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity55

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.

###  Release Activity

Cadence

Every ~0 days

Total

5

Last Release

1813d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3c6ac074accf44d6b08cc30b1fe2e2c7a844003cbf00b21c3bd65892e31770ba?d=identicon)[hbedek](/maintainers/hbedek)

---

Top Contributors

[![hbedek](https://avatars.githubusercontent.com/u/84860573?v=4)](https://github.com/hbedek "hbedek (14 commits)")

### Embed Badge

![Health badge](/badges/hbedek-ec-interface/health.svg)

```
[![Health](https://phpackages.com/badges/hbedek-ec-interface/health.svg)](https://phpackages.com/packages/hbedek-ec-interface)
```

###  Alternatives

[zamoose/themehookalliance

Theme Hook Alliance

36710.4k](/packages/zamoose-themehookalliance)[solarissmoke/disable-comments-mu

This is the must-use version of the Disable Comments WordPress plugin. Copy the contents of this directory into your mu-plugins directory in order to disable comments on the entire site/network, without any configuration. You should delete all existing comments from the WordPress database before activating this plugin. If you want to be able to configure the plugin's behaviour, then use the normal version.

6570.2k](/packages/solarissmoke-disable-comments-mu)[dstuecken/php7ify

php7ify is a project that brings new php7 classes and exceptions to php 5.x.

11159.2k1](/packages/dstuecken-php7ify)

PHPackages © 2026

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