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 6d ago

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 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

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

1719d 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

[jansenfelipe/cep-gratis

Com esse pacote você poderá realizar consultas de CEP gratuitamente.

689.4k](/packages/jansenfelipe-cep-gratis)[automattic/maintenance-mode-wp

Shut down your site for a little while and do some maintenance on it!

491.4k](/packages/automattic-maintenance-mode-wp)

PHPackages © 2026

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