PHPackages                             utilita/electricitybillcalculator - 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. utilita/electricitybillcalculator

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

utilita/electricitybillcalculator
=================================

Designing an optimised billing system for a utility company that uses smart meters to measure and monitor electricity usage for households.

1.0.0(2y ago)02MITPHPPHP ^8.2

Since Jan 15Pushed 2y ago1 watchersCompare

[ Source](https://github.com/monircse403/utilita_techinal_task)[ Packagist](https://packagist.org/packages/utilita/electricitybillcalculator)[ RSS](/packages/utilita-electricitybillcalculator/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

How to Usage :

1. Inside the Config file you can set how many data you want to generate. First parameter is no of rows, then start date and endnote which will generate the data accordingly
2. Run php index.php 4.3 2.2 where First argumenet is your php path then index file and last two parameters are peak\_hour\_rate and off-peak hour rates
3. The expected output will be in json array

The arguments must be float/int

The output will be json format with the data as array

Example: php index.php 4.2 1.2

Expected Json Output:

\[{"meterId":34,"timestamp":"2023-12-01T21:56:57","meter\_reading\_in\_kilowatt\_hours":8,"isPeakHourRate":"Peak Hour Rate: 4.2","totalBill":33.6},{"meterId":7,"timestamp":"2023-12-01T09:22:29","meter\_reading\_in\_kilowatt\_hours":131,"isPeakHourRate":"Peak Hour Rate: 4.2","totalBill":550.2},{"meterId":2,"timestamp":"2023-12-01T16:47:44","meter\_reading\_in\_kilowatt\_hours":163,"isPeakHourRate":"Peak Hour Rate: 4.2","totalBill":684.6},{"meterId":41,"timestamp":"2023-12-01T10:05:34","meter\_reading\_in\_kilowatt\_hours":50,"isPeakHourRate":"Peak Hour Rate: 4.2","totalBill":210},{"meterId":37,"timestamp":"2023-12-01T23:57:38","meter\_reading\_in\_kilowatt\_hours":101,"isPeakHourRate":"Peak Hour Rate: 4.2","totalBill":424.2}\]

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

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

Unknown

Total

1

Last Release

902d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8881d6d6432604a6d9dc309e08461eb8680dca9f0228da2dbb59d09030277cfd?d=identicon)[monircse403](/maintainers/monircse403)

---

Top Contributors

[![monircse403](https://avatars.githubusercontent.com/u/1459858?v=4)](https://github.com/monircse403 "monircse403 (11 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/utilita-electricitybillcalculator/health.svg)

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

###  Alternatives

[stephenjude/filament-blog

Filament Blog Builder

20619.4k](/packages/stephenjude-filament-blog)

PHPackages © 2026

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